pub type ToDeviceRoomKeyEvent = ToDeviceEvent<ToDeviceRoomKeyEventContent>;
Available on crate feature
events
only.Expand description
An m.room_key
event.
Aliased Type§
struct ToDeviceRoomKeyEvent {
pub content: ToDeviceRoomKeyEventContent,
pub sender: OwnedUserId,
}
Fields§
§content: ToDeviceRoomKeyEventContent
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 for ToDeviceEvent<C>where
C: Clone + ToDeviceEventContent,
impl<C> Clone for ToDeviceEvent<C>where
C: Clone + ToDeviceEventContent,
Source§fn clone(&self) -> ToDeviceEvent<C>
fn clone(&self) -> ToDeviceEvent<C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C> Debug for ToDeviceEvent<C>where
C: Debug + ToDeviceEventContent,
impl<C> Debug for ToDeviceEvent<C>where
C: Debug + ToDeviceEventContent,
Source§impl<'de, C> Deserialize<'de> for ToDeviceEvent<C>where
C: ToDeviceEventContent + EventContentFromType,
impl<'de, C> Deserialize<'de> for ToDeviceEvent<C>where
C: ToDeviceEventContent + EventContentFromType,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ToDeviceEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ToDeviceEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C> Serialize for ToDeviceEvent<C>where
C: ToDeviceEventContent,
impl<C> Serialize for ToDeviceEvent<C>where
C: ToDeviceEventContent,
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more