Type Alias PossiblyRedactedRoomThirdPartyInviteEventContent

Source
pub type PossiblyRedactedRoomThirdPartyInviteEventContent = RoomThirdPartyInviteEventContent;
Expand description

The possibly redacted form of RoomThirdPartyInviteEventContent.

This type is used when it’s not obvious whether the content is redacted or not.

Aliased Type§

struct PossiblyRedactedRoomThirdPartyInviteEventContent {
    pub display_name: String,
    pub key_validity_url: String,
    pub public_key: Base64,
    pub public_keys: Option<Vec<PublicKey>>,
}

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

Source§

impl RoomThirdPartyInviteEventContent

Source

pub fn new( display_name: String, key_validity_url: String, public_key: Base64, ) -> Self

Creates a new RoomThirdPartyInviteEventContent with the given display name, key validity url and public key.

Trait Implementations

Source§

impl Clone for RoomThirdPartyInviteEventContent

Source§

fn clone(&self) -> RoomThirdPartyInviteEventContent

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RoomThirdPartyInviteEventContent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RoomThirdPartyInviteEventContent

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl EventContent for RoomThirdPartyInviteEventContent

Source§

type EventType = StateEventType

The Rust enum for the event kind’s known types.
Source§

fn event_type(&self) -> Self::EventType

Get the event’s type, like m.room.message.
Source§

impl PossiblyRedactedStateEventContent for RoomThirdPartyInviteEventContent

Source§

type StateKey = String

The type of the event’s state_key field.
Source§

impl RedactContent for RoomThirdPartyInviteEventContent

Source§

type Redacted = RedactedRoomThirdPartyInviteEventContent

The redacted form of the event’s content.
Source§

fn redact( self, version: &RoomVersionId, ) -> RedactedRoomThirdPartyInviteEventContent

Transform self into a redacted form (removing most or all fields) according to the spec. Read more
Source§

impl Serialize for RoomThirdPartyInviteEventContent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StateEventContent for RoomThirdPartyInviteEventContent

Source§

type StateKey = String

The type of the event’s state_key field.
Source§

impl StaticEventContent for RoomThirdPartyInviteEventContent

Source§

const TYPE: &'static str = "m.room.third_party_invite"

The event type.
Source§

impl StaticStateEventContent for RoomThirdPartyInviteEventContent

Source§

type PossiblyRedacted = RoomThirdPartyInviteEventContent

The possibly redacted form of the event’s content.
Source§

type Unsigned = StateUnsigned<<RoomThirdPartyInviteEventContent as StaticStateEventContent>::PossiblyRedacted>

The type of the event’s unsigned field.