Struct ruma_events::room::third_party_invite::ThirdPartyInviteEvent
[−]
[src]
pub struct ThirdPartyInviteEvent { pub content: ThirdPartyInviteEventContent, pub event_id: EventId, pub event_type: EventType, pub prev_content: Option<ThirdPartyInviteEventContent>, pub room_id: RoomId, pub state_key: String, pub unsigned: Option<Value>, pub user_id: UserId, }
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
content: ThirdPartyInviteEventContent
The event's content.
event_id: EventId
The unique identifier for the event.
event_type: EventType
The type of the event.
prev_content: Option<ThirdPartyInviteEventContent>
The previous content for this state key, if any.
room_id: RoomId
The unique identifier for the room associated with this event.
state_key: String
A key that determines which piece of room state the event represents.
unsigned: Option<Value>
Additional key-value pairs not signed by the homeserver.
user_id: UserId
The unique identifier for the user associated with this event.
Trait Implementations
impl Clone for ThirdPartyInviteEvent
[src]
fn clone(&self) -> ThirdPartyInviteEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ThirdPartyInviteEvent
[src]
impl Event for ThirdPartyInviteEvent
[src]
type Content = ThirdPartyInviteEventContent
The event-type-specific payload this event carries.
fn content(&self) -> &ThirdPartyInviteEvent::Content
The event's content.
fn event_type(&self) -> &EventType
The type of the event.
fn extra_content(&self) -> Option<Value>
Extra top-level key-value pairs specific to this event type, but that are not under the content
field. Read more
impl RoomEvent for ThirdPartyInviteEvent
[src]
fn event_id(&self) -> &EventId
The unique identifier for the event.
fn room_id(&self) -> &RoomId
The unique identifier for the room associated with this event.
fn unsigned(&self) -> Option<&Value>
Additional key-value pairs not signed by the homeserver.
fn user_id(&self) -> &UserId
The unique identifier for the user associated with this event.
impl StateEvent for ThirdPartyInviteEvent
[src]
fn prev_content(&self) -> Option<&Self::Content>
The previous content for this state key, if any.
fn state_key(&self) -> &str
A key that determines which piece of room state the event represents.