pub struct DeviceView {
pub accounts: Option<Vec<LinkView>>,
pub active_sessions: Option<i32>,
pub host: Option<String>,
pub last_seen: Option<String>,
pub machine: Option<String>,
pub os: Option<String>,
}Fields§
§accounts: Option<Vec<LinkView>>Accounts is every account the caller has signed in on this machine.
active_sessions: Option<i32>ActiveSessions is how many agent sessions the caller currently has running on this machine; 0 where the agent plane is not mounted.
host: Option<String>Host is the machine’s hostname label, from its most-recently-seen account.
last_seen: Option<String>LastSeen is when any account on this machine last reported, RFC 3339 UTC.
machine: Option<String>Machine is the stable machine identifier.
os: Option<String>OS is the machine’s operating system label.
Implementations§
Source§impl DeviceView
impl DeviceView
pub fn new() -> DeviceView
Trait Implementations§
Source§impl Clone for DeviceView
impl Clone for DeviceView
Source§fn clone(&self) -> DeviceView
fn clone(&self) -> DeviceView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeviceView
impl Debug for DeviceView
Source§impl Default for DeviceView
impl Default for DeviceView
Source§fn default() -> DeviceView
fn default() -> DeviceView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceView
impl<'de> Deserialize<'de> for DeviceView
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
Source§impl PartialEq for DeviceView
impl PartialEq for DeviceView
Source§impl Serialize for DeviceView
impl Serialize for DeviceView
impl StructuralPartialEq for DeviceView
Auto Trait Implementations§
impl Freeze for DeviceView
impl RefUnwindSafe for DeviceView
impl Send for DeviceView
impl Sync for DeviceView
impl Unpin for DeviceView
impl UnsafeUnpin for DeviceView
impl UnwindSafe for DeviceView
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