pub struct DeviceListUpdateContent {
pub user_id: OwnedUserId,
pub device_id: OwnedDeviceId,
pub device_display_name: Option<String>,
pub stream_id: UInt,
pub prev_id: Vec<UInt>,
pub deleted: Option<bool>,
pub keys: Option<Raw<DeviceKeys>>,
}
Expand description
The description of the direct-to- device message.
Fields§
§user_id: OwnedUserId
The user ID who owns the device.
device_id: OwnedDeviceId
The ID of the device whose details are changing.
device_display_name: Option<String>
The public human-readable name of this device.
Will be absent if the device has no name.
stream_id: UInt
An ID sent by the server for this update, unique for a given user_id.
prev_id: Vec<UInt>
The stream_ids of any prior m.device_list_update EDUs sent for this user which have not been referred to already in an EDU’s prev_id field.
deleted: Option<bool>
True if the server is announcing that this device has been deleted.
keys: Option<Raw<DeviceKeys>>
The updated identity keys (if any) for this device.
Implementations§
Trait Implementations§
source§impl Clone for DeviceListUpdateContent
impl Clone for DeviceListUpdateContent
source§fn clone(&self) -> DeviceListUpdateContent
fn clone(&self) -> DeviceListUpdateContent
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 Debug for DeviceListUpdateContent
impl Debug for DeviceListUpdateContent
source§impl<'de> Deserialize<'de> for DeviceListUpdateContent
impl<'de> Deserialize<'de> for DeviceListUpdateContent
source§fn 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
Auto Trait Implementations§
impl Freeze for DeviceListUpdateContent
impl RefUnwindSafe for DeviceListUpdateContent
impl Send for DeviceListUpdateContent
impl Sync for DeviceListUpdateContent
impl Unpin for DeviceListUpdateContent
impl UnwindSafe for DeviceListUpdateContent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)