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§
§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 = RoomThirdPartyInviteEventContent
type PossiblyRedacted = RoomThirdPartyInviteEventContent
source§type Unsigned = StateUnsigned<<RoomThirdPartyInviteEventContent as StaticStateEventContent>::PossiblyRedacted>
type Unsigned = StateUnsigned<<RoomThirdPartyInviteEventContent as StaticStateEventContent>::PossiblyRedacted>
unsigned
field.Auto Trait Implementations§
impl Freeze for RoomThirdPartyInviteEventContent
impl RefUnwindSafe for RoomThirdPartyInviteEventContent
impl Send for RoomThirdPartyInviteEventContent
impl Sync for RoomThirdPartyInviteEventContent
impl Unpin for RoomThirdPartyInviteEventContent
impl UnwindSafe for RoomThirdPartyInviteEventContent
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)