pub struct DeviceEntry {
pub id: String,
pub created_at: i64,
pub last_active_at: i64,
pub user_agent: Option<String>,
pub ip_address: Option<String>,
pub is_current: bool,
pub cohort_hash: Option<String>,
pub device_id: Option<String>,
}Expand description
One active session (“device”) from the session listing. Mirrors the server’s
Device; id is the session id, cohort_hash its advisory
grouping value (absent when the client asserted none).
Fields§
§id: StringThe session id.
created_at: i64Session creation time (Unix seconds).
last_active_at: i64Last activity time (Unix seconds).
user_agent: Option<String>Reported user agent, if any.
ip_address: Option<String>Reported source IP, if any.
is_current: boolWhether this is the session making the current request.
cohort_hash: Option<String>The advisory device-cohort hash asserted at session creation, if any.
device_id: Option<String>The hardware device id asserted at session creation, if any.
Client-asserted and unverified, like cohort_hash — it gates
nothing and is absent from the JWT claims. It exists so a support bundle can report
the (device_id, session_id) pair the authentication doc specifies; id above stays
the session id.
Trait Implementations§
Source§impl Clone for DeviceEntry
impl Clone for DeviceEntry
Source§fn clone(&self) -> DeviceEntry
fn clone(&self) -> DeviceEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceEntry
impl Debug for DeviceEntry
Source§impl<'de> Deserialize<'de> for DeviceEntry
impl<'de> Deserialize<'de> for DeviceEntry
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>,
impl Eq for DeviceEntry
Source§impl PartialEq for DeviceEntry
impl PartialEq for DeviceEntry
Source§fn eq(&self, other: &DeviceEntry) -> bool
fn eq(&self, other: &DeviceEntry) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DeviceEntry
impl Serialize for DeviceEntry
impl StructuralPartialEq for DeviceEntry
Auto Trait Implementations§
impl Freeze for DeviceEntry
impl RefUnwindSafe for DeviceEntry
impl Send for DeviceEntry
impl Sync for DeviceEntry
impl Unpin for DeviceEntry
impl UnsafeUnpin for DeviceEntry
impl UnwindSafe for DeviceEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more