Struct ruma_events::call::hangup::HangupEvent
[−]
[src]
pub struct HangupEvent { pub content: HangupEventContent, pub event_id: EventId, pub event_type: EventType, pub room_id: RoomId, pub unsigned: Option<Value>, pub user_id: UserId, }
Sent by either party to signal their termination of the call. This can be sent either once the call has has been established or before to abort the call.
Fields
content: HangupEventContent
The event's content.
event_id: EventId
The unique identifier for the event.
event_type: EventType
The type of the event.
room_id: RoomId
The unique identifier for the room associated with this event.
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 HangupEvent
[src]
fn clone(&self) -> HangupEvent
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 HangupEvent
[src]
impl Event for HangupEvent
[src]
type Content = HangupEventContent
The event-type-specific payload this event carries.
fn content(&self) -> &<HangupEvent as Event>::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 HangupEvent
[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.