Struct matrix_sdk::ruma::events::room::third_party_invite::PossiblyRedactedRoomThirdPartyInviteEventContent
#[non_exhaustive]pub struct PossiblyRedactedRoomThirdPartyInviteEventContent {
pub display_name: Option<String>,
pub key_validity_url: Option<String>,
pub public_key: Option<Base64>,
pub public_keys: Option<Vec<PublicKey>>,
}
Expand description
The possibly redacted form of RoomThirdPartyInviteEventContent
.
This type is used when it’s not obvious whether the content is redacted or not.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.display_name: Option<String>
A user-readable string which represents the user who has been invited.
If the compat-optional
feature is enabled, this field being absent in JSON will result
in an empty string instead of an error when deserializing.
key_validity_url: Option<String>
A URL which can be fetched to validate whether the key has been revoked.
If the compat-optional
feature is enabled, this field being absent in JSON will result
in an empty string instead of an error when deserializing.
public_key: Option<Base64>
A base64-encoded Ed25519 key with which the token must be signed.
If the compat-optional
feature is enabled, this field being absent in JSON will result
in an empty string instead of an error when deserializing.
public_keys: Option<Vec<PublicKey>>
Keys with which the token may be signed.
Trait Implementations§
§impl Clone for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Clone for PossiblyRedactedRoomThirdPartyInviteEventContent
§fn clone(&self) -> PossiblyRedactedRoomThirdPartyInviteEventContent
fn clone(&self) -> PossiblyRedactedRoomThirdPartyInviteEventContent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl<'de> Deserialize<'de> for PossiblyRedactedRoomThirdPartyInviteEventContent
impl<'de> Deserialize<'de> for PossiblyRedactedRoomThirdPartyInviteEventContent
§fn deserialize<__D>(
__deserializer: __D
) -> Result<PossiblyRedactedRoomThirdPartyInviteEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PossiblyRedactedRoomThirdPartyInviteEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl EventContent for PossiblyRedactedRoomThirdPartyInviteEventContent
impl EventContent for PossiblyRedactedRoomThirdPartyInviteEventContent
§type EventType = StateEventType
type EventType = StateEventType
§fn event_type(
&self
) -> <PossiblyRedactedRoomThirdPartyInviteEventContent as EventContent>::EventType
fn event_type( &self ) -> <PossiblyRedactedRoomThirdPartyInviteEventContent as EventContent>::EventType
m.room.message
.§impl Serialize for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Serialize for PossiblyRedactedRoomThirdPartyInviteEventContent
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl RefUnwindSafe for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Send for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Sync for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Unpin for PossiblyRedactedRoomThirdPartyInviteEventContent
impl UnwindSafe for PossiblyRedactedRoomThirdPartyInviteEventContent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> EventContentFromType for Twhere
T: EventContent + DeserializeOwned,
impl<T> EventContentFromType for Twhere
T: EventContent + DeserializeOwned,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>