pub struct Session {
pub create_at: Option<i64>,
pub device_id: Option<String>,
pub expires_at: Option<i64>,
pub id: Option<String>,
pub is_oauth: Option<bool>,
pub last_activity_at: Option<i64>,
pub props: Option<Value>,
pub roles: Option<String>,
pub team_members: Option<Vec<TeamMember>>,
pub token: Option<String>,
pub user_id: Option<String>,
}
Fields§
§create_at: Option<i64>
The time in milliseconds a session was created
device_id: Option<String>
§expires_at: Option<i64>
The time in milliseconds a session will expire
id: Option<String>
§is_oauth: Option<bool>
§last_activity_at: Option<i64>
The time in milliseconds of the last activity of a session
props: Option<Value>
§roles: Option<String>
§team_members: Option<Vec<TeamMember>>
§token: Option<String>
§user_id: Option<String>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
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 StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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