pub struct DeviceInfo {
pub endpoint_id: String,
pub name: Option<String>,
pub platform: Option<Platform>,
pub last_seen_at: i64,
pub pin_required: bool,
pub trusted: bool,
pub auto_login: bool,
pub this_device: bool,
}Expand description
One of a user’s devices.
Fields§
§endpoint_id: StringHex EndpointId: what SetPinRequired { device } takes.
name: Option<String>What the device calls itself.
platform: Option<Platform>What kind of client it runs, as its Hello said; None for a
device not seen since before the server kept it.
last_seen_at: i64Unix seconds.
pin_required: boolThe user’s PIN is asked for on it.
trusted: boolIt may resume the user without a password.
auto_login: boolIt opens the user’s profile at start.
this_device: boolThe device this request came from.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl<'de> Deserialize<'de> for DeviceInfo
impl<'de> Deserialize<'de> for DeviceInfo
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
impl Eq for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
Source§impl Serialize for DeviceInfo
impl Serialize for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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