#[non_exhaustive]pub struct RoomThirdPartyInviteEventContent {
pub display_name: String,
pub key_validity_url: String,
pub public_key: Base64,
pub public_keys: Option<Vec<PublicKey>>,
}
Expand description
The content of an m.room.third_party_invite
event.
An invitation to a room issued to a third party identifier, rather than a matrix user ID.
Acts as an m.room.member
invite event, where there isn’t a target user_id to invite. This
event contains a token and a public key whose private key must be used to sign the token.
Any user who can present that signature may use this invitation to join the target room.
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: 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: 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: 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.
Implementations§
Trait Implementations§
Source§impl Clone for RoomThirdPartyInviteEventContent
impl Clone for RoomThirdPartyInviteEventContent
Source§fn clone(&self) -> RoomThirdPartyInviteEventContent
fn clone(&self) -> RoomThirdPartyInviteEventContent
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 RoomThirdPartyInviteEventContent
impl<'de> Deserialize<'de> for RoomThirdPartyInviteEventContent
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 RoomThirdPartyInviteEventContent
impl EventContent for RoomThirdPartyInviteEventContent
Source§type EventType = StateEventType
type EventType = StateEventType
Source§fn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
m.room.message
.Source§impl From<RoomThirdPartyInviteEventContent> for AnyStateEventContent
impl From<RoomThirdPartyInviteEventContent> for AnyStateEventContent
Source§fn from(c: RoomThirdPartyInviteEventContent) -> Self
fn from(c: RoomThirdPartyInviteEventContent) -> Self
Source§impl RedactContent for RoomThirdPartyInviteEventContent
impl RedactContent for RoomThirdPartyInviteEventContent
Source§type Redacted = RedactedRoomThirdPartyInviteEventContent
type Redacted = RedactedRoomThirdPartyInviteEventContent
Source§fn redact(
self,
version: &RoomVersionId,
) -> RedactedRoomThirdPartyInviteEventContent
fn redact( self, version: &RoomVersionId, ) -> RedactedRoomThirdPartyInviteEventContent
self
into a redacted form (removing most or all fields) according to the spec. Read moreSource§impl StaticStateEventContent for RoomThirdPartyInviteEventContent
impl StaticStateEventContent for RoomThirdPartyInviteEventContent
Source§type PossiblyRedacted = PossiblyRedactedRoomThirdPartyInviteEventContent
type PossiblyRedacted = PossiblyRedactedRoomThirdPartyInviteEventContent
Source§type Unsigned = StateUnsigned<<RoomThirdPartyInviteEventContent as StaticStateEventContent>::PossiblyRedacted>
type Unsigned = StateUnsigned<<RoomThirdPartyInviteEventContent as StaticStateEventContent>::PossiblyRedacted>
unsigned
field.