Struct ruma_events::ToDeviceEvent [−][src]
pub struct ToDeviceEvent<C: ToDeviceEventContent> { pub content: C, pub sender: UserId, }
Expand description
An event sent using send-to-device messaging.
Fields
content: C
Data specific to the event type.
sender: UserId
The fully-qualified ID of the user who sent this event.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<C> RefUnwindSafe for ToDeviceEvent<C> where
C: RefUnwindSafe,
impl<C> Send for ToDeviceEvent<C> where
C: Send,
impl<C> Sync for ToDeviceEvent<C> where
C: Sync,
impl<C> Unpin for ToDeviceEvent<C> where
C: Unpin,
impl<C> UnwindSafe for ToDeviceEvent<C> where
C: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V