ruma_events::room::encrypted

Type Alias ToDeviceRoomEncryptedEvent

Source
pub type ToDeviceRoomEncryptedEvent = ToDeviceEvent<ToDeviceRoomEncryptedEventContent>;
Expand description

An m.room.encrypted event.

Aliased Type§

struct ToDeviceRoomEncryptedEvent {
    pub content: ToDeviceRoomEncryptedEventContent,
    pub sender: OwnedUserId,
}

Fields§

§content: ToDeviceRoomEncryptedEventContent

Data specific to the event type.

§sender: OwnedUserId

The fully-qualified ID of the user who sent this event.

Trait Implementations

Source§

impl<C: Clone + ToDeviceEventContent> Clone for ToDeviceEvent<C>

Source§

fn clone(&self) -> ToDeviceEvent<C>

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<C: Debug + ToDeviceEventContent> Debug for ToDeviceEvent<C>

Source§

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

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

impl<'de, C> Deserialize<'de> for ToDeviceEvent<C>

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<C: ToDeviceEventContent> Serialize for ToDeviceEvent<C>

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