Struct matrix_sdk_crypto::types::events::ToDeviceCustomEvent
source · [−]pub struct ToDeviceCustomEvent {
pub sender: OwnedUserId,
pub content: BTreeMap<String, Value>,
pub event_type: String,
/* private fields */
}Expand description
A to-device event with an unknown type and content.
Fields
sender: OwnedUserIdThe sender of the to-device event.
content: BTreeMap<String, Value>The content of the to-device event.
event_type: StringThe type of the to-device event.
Trait Implementations
sourceimpl Clone for ToDeviceCustomEvent
impl Clone for ToDeviceCustomEvent
sourcefn clone(&self) -> ToDeviceCustomEvent
fn clone(&self) -> ToDeviceCustomEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ToDeviceCustomEvent
impl Debug for ToDeviceCustomEvent
sourceimpl<'de> Deserialize<'de> for ToDeviceCustomEvent
impl<'de> Deserialize<'de> for ToDeviceCustomEvent
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ToDeviceCustomEvent
impl Serialize for ToDeviceCustomEvent
Auto Trait Implementations
impl RefUnwindSafe for ToDeviceCustomEvent
impl Send for ToDeviceCustomEvent
impl Sync for ToDeviceCustomEvent
impl Unpin for ToDeviceCustomEvent
impl UnwindSafe for ToDeviceCustomEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more