#[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§
Source§impl Clone for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Clone for PossiblyRedactedRoomThirdPartyInviteEventContent
Source§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 moreSource§impl<'de> Deserialize<'de> for PossiblyRedactedRoomThirdPartyInviteEventContent
impl<'de> Deserialize<'de> for PossiblyRedactedRoomThirdPartyInviteEventContent
Source§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>,
Source§impl EventContent for PossiblyRedactedRoomThirdPartyInviteEventContent
impl EventContent for PossiblyRedactedRoomThirdPartyInviteEventContent
Source§type EventType = StateEventType
type EventType = StateEventType
Source§fn event_type(
&self,
) -> <PossiblyRedactedRoomThirdPartyInviteEventContent as EventContent>::EventType
fn event_type( &self, ) -> <PossiblyRedactedRoomThirdPartyInviteEventContent as EventContent>::EventType
m.room.message
.Source§impl Serialize for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Serialize for PossiblyRedactedRoomThirdPartyInviteEventContent
Source§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 Freeze for PossiblyRedactedRoomThirdPartyInviteEventContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EventContentFromType for Twhere
T: EventContent + DeserializeOwned,
impl<T> EventContentFromType for Twhere
T: EventContent + DeserializeOwned,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more