Struct ruma_client_api::r0::device::Device [−][src]
pub struct Device { pub device_id: DeviceIdBox, pub display_name: Option<String>, pub last_seen_ip: Option<String>, pub last_seen_ts: Option<MilliSecondsSinceUnixEpoch>, }
Expand description
Information about a registered device.
Fields
device_id: DeviceIdBox
Device ID
display_name: Option<String>
Public display name of the device.
last_seen_ip: Option<String>
Most recently seen IP address of the session.
last_seen_ts: Option<MilliSecondsSinceUnixEpoch>
Unix timestamp that the session was last active.
Implementations
Creates a new Device
with the given device ID.
Trait Implementations
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 RefUnwindSafe for Device
impl UnwindSafe for Device
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more