pub struct SessionView {
pub id: String,
pub expires_at: DateTime<Utc>,
pub token: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub ip_address: Option<String>,
pub user_agent: Option<String>,
pub user_id: String,
pub impersonated_by: Option<String>,
pub active_organization_id: Option<String>,
pub active: bool,
}Expand description
Public session response shape.
Fields§
§id: String§expires_at: DateTime<Utc>§token: String§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§ip_address: Option<String>§user_agent: Option<String>§user_id: String§impersonated_by: Option<String>§active_organization_id: Option<String>§active: boolTrait Implementations§
Source§impl AuthSession for SessionView
impl AuthSession for SessionView
fn id(&self) -> Cow<'_, str>
fn expires_at(&self) -> DateTime<Utc>
fn token(&self) -> &str
fn created_at(&self) -> DateTime<Utc>
fn updated_at(&self) -> DateTime<Utc>
fn ip_address(&self) -> Option<&str>
fn user_agent(&self) -> Option<&str>
fn user_id(&self) -> Cow<'_, str>
fn impersonated_by(&self) -> Option<&str>
fn active_organization_id(&self) -> Option<&str>
fn active(&self) -> bool
Source§impl Clone for SessionView
impl Clone for SessionView
Source§fn clone(&self) -> SessionView
fn clone(&self) -> SessionView
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 SessionView
impl Debug for SessionView
Source§impl<'de> Deserialize<'de> for SessionView
impl<'de> Deserialize<'de> for SessionView
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<T: AuthSession> From<&T> for SessionView
impl<T: AuthSession> From<&T> for SessionView
Source§impl PartialEq for SessionView
impl PartialEq for SessionView
Source§impl Serialize for SessionView
impl Serialize for SessionView
impl StructuralPartialEq for SessionView
Auto Trait Implementations§
impl Freeze for SessionView
impl RefUnwindSafe for SessionView
impl Send for SessionView
impl Sync for SessionView
impl Unpin for SessionView
impl UnsafeUnpin for SessionView
impl UnwindSafe for SessionView
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