#[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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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) -> Self::EventType
fn event_type(&self) -> Self::EventType
m.room.message
.