#[non_exhaustive]pub struct RoomThirdPartyInviteEventContent {
    pub display_name: String,
    pub key_validity_url: String,
    pub public_key: IdentityServerBase64PublicKey,
    pub public_keys: Option<Vec<PublicKey>>,
}events only.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: StringA 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: StringA 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: IdentityServerBase64PublicKeyA 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§
Source§impl RoomThirdPartyInviteEventContent
 
impl RoomThirdPartyInviteEventContent
Sourcepub fn new(
    display_name: String,
    key_validity_url: String,
    public_key: IdentityServerBase64PublicKey,
) -> RoomThirdPartyInviteEventContent
 
pub fn new( display_name: String, key_validity_url: String, public_key: IdentityServerBase64PublicKey, ) -> RoomThirdPartyInviteEventContent
Creates a new RoomThirdPartyInviteEventContent with the given display name, key validity
url and public key.
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<RoomThirdPartyInviteEventContent, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<RoomThirdPartyInviteEventContent, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Source§impl From<Response> for RoomThirdPartyInviteEventContent
 
impl From<Response> for RoomThirdPartyInviteEventContent
Source§fn from(response: Response) -> RoomThirdPartyInviteEventContent
 
fn from(response: Response) -> RoomThirdPartyInviteEventContent
Source§impl From<RoomThirdPartyInviteEventContent> for AnyStateEventContent
 
impl From<RoomThirdPartyInviteEventContent> for AnyStateEventContent
Source§fn from(c: RoomThirdPartyInviteEventContent) -> AnyStateEventContent
 
fn from(c: RoomThirdPartyInviteEventContent) -> AnyStateEventContent
Source§impl PossiblyRedactedStateEventContent for RoomThirdPartyInviteEventContent
 
impl PossiblyRedactedStateEventContent for RoomThirdPartyInviteEventContent
Source§fn event_type(&self) -> StateEventType
 
fn event_type(&self) -> StateEventType
m.room.name.Source§impl RedactContent for RoomThirdPartyInviteEventContent
 
impl RedactContent for RoomThirdPartyInviteEventContent
Source§type Redacted = RedactedRoomThirdPartyInviteEventContent
 
type Redacted = RedactedRoomThirdPartyInviteEventContent
Source§fn redact(
    self,
    _rules: &RedactionRules,
) -> RedactedRoomThirdPartyInviteEventContent
 
fn redact( self, _rules: &RedactionRules, ) -> RedactedRoomThirdPartyInviteEventContent
self into a redacted form (removing most or all fields) according to the spec. Read moreSource§impl Serialize for RoomThirdPartyInviteEventContent
 
impl Serialize for RoomThirdPartyInviteEventContent
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,
Source§impl StateEventContent for RoomThirdPartyInviteEventContent
 
impl StateEventContent for RoomThirdPartyInviteEventContent
Source§fn event_type(&self) -> StateEventType
 
fn event_type(&self) -> StateEventType
m.room.name.Source§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.