Struct matrix_sdk::ruma::events::room::third_party_invite::PossiblyRedactedRoomThirdPartyInviteEventContent
source · #[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
§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T> EventContentFromType for Twhere
T: EventContent + DeserializeOwned,
impl<T> EventContentFromType for Twhere
T: EventContent + DeserializeOwned,
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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