Struct ruma::api::federation::device::get_devices::v1::UserDevice [−][src]
pub struct UserDevice {
pub device_id: Box<DeviceId, Global>,
pub keys: DeviceKeys,
pub device_display_name: Option<String>,
}
This is supported on crate feature
api
and (crate features federation-api
or federation-api-c
or federation-api-s
) only.Expand description
Information about a user’s device.
Fields
device_id: Box<DeviceId, Global>
The device ID.
keys: DeviceKeys
Identity keys for the device.
device_display_name: Option<String>
Optional display name for the device
Implementations
Creates a new UserDevice
with the given device id and keys.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<UserDevice, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<UserDevice, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for UserDevice
impl Send for UserDevice
impl Sync for UserDevice
impl Unpin for UserDevice
impl UnwindSafe for UserDevice
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more