pub struct SessionInfo {
pub device_name: Option<String>,
pub platform: Option<Platform>,
pub created_at: i64,
pub last_used_at: i64,
pub current: bool,
}Expand description
One live session, without its token.
Fields§
§device_name: Option<String>The device’s name; None for an admin API session or an unnamed
device.
platform: Option<Platform>What kind of client the device runs; None for an admin API
session (the web UI or the CLI) or a device not seen since before
the server kept it.
created_at: i64Unix seconds.
last_used_at: i64Unix seconds.
current: boolThe session this request was made in.
Trait Implementations§
Source§impl Clone for SessionInfo
impl Clone for SessionInfo
Source§impl Debug for SessionInfo
impl Debug for SessionInfo
Source§impl<'de> Deserialize<'de> for SessionInfo
impl<'de> Deserialize<'de> for SessionInfo
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 SessionInfo
Source§impl PartialEq for SessionInfo
impl PartialEq for SessionInfo
Source§impl Serialize for SessionInfo
impl Serialize for SessionInfo
impl StructuralPartialEq for SessionInfo
Auto Trait Implementations§
impl Forget for SessionInfo
impl Freeze for SessionInfo
impl Move for SessionInfo
impl RefUnwindSafe for SessionInfo
impl Send for SessionInfo
impl Sync for SessionInfo
impl Unpin for SessionInfo
impl UnsafeUnpin for SessionInfo
impl UnwindSafe for SessionInfo
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