pub struct ClientSession {Show 15 fields
pub id: String,
pub object: Object,
pub status: Status,
pub expire_at: i64,
pub abandon_at: i64,
pub last_active_at: i64,
pub last_active_token: Option<Option<Box<Token>>>,
pub actor: Option<Option<HashMap<String, Value>>>,
pub tasks: Option<Option<Vec<ClientSessionTask>>>,
pub last_active_organization_id: Option<String>,
pub user: Option<Box<ClientUser>>,
pub public_user_data: Option<Value>,
pub factor_verification_age: Vec<i64>,
pub created_at: i64,
pub updated_at: i64,
}Fields§
§id: String§object: ObjectString representing the object’s type. Objects of the same type share the same value.
status: Status§expire_at: i64§abandon_at: i64§last_active_at: i64§last_active_token: Option<Option<Box<Token>>>§actor: Option<Option<HashMap<String, Value>>>§tasks: Option<Option<Vec<ClientSessionTask>>>§last_active_organization_id: Option<String>§user: Option<Box<ClientUser>>§public_user_data: Option<Value>§factor_verification_age: Vec<i64>Each item represents the minutes that have passed since the last time a first or second factor were verified.
created_at: i64Unix timestamp of creation.
updated_at: i64Unix timestamp of last update.
Implementations§
Source§impl ClientSession
impl ClientSession
Trait Implementations§
Source§impl Clone for ClientSession
impl Clone for ClientSession
Source§fn clone(&self) -> ClientSession
fn clone(&self) -> ClientSession
Returns a duplicate of the value. Read more
1.0.0 · 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 ClientSession
impl Debug for ClientSession
Source§impl Default for ClientSession
impl Default for ClientSession
Source§fn default() -> ClientSession
fn default() -> ClientSession
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientSession
impl<'de> Deserialize<'de> for ClientSession
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 From<SchemasClientSession> for ClientSession
impl From<SchemasClientSession> for ClientSession
Source§fn from(schemas_client_session: SchemasClientSession) -> Self
fn from(schemas_client_session: SchemasClientSession) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClientSession
impl PartialEq for ClientSession
Source§impl Serialize for ClientSession
impl Serialize for ClientSession
impl StructuralPartialEq for ClientSession
Auto Trait Implementations§
impl Freeze for ClientSession
impl RefUnwindSafe for ClientSession
impl Send for ClientSession
impl Sync for ClientSession
impl Unpin for ClientSession
impl UnwindSafe for ClientSession
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