pub struct SessionView {Show 13 fields
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_team_id: Option<String>,
pub extension_fields: BTreeMap<String, Value>,
pub omitted_fields: BTreeSet<String>,
}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_team_id: Option<String>§extension_fields: BTreeMap<String, Value>§omitted_fields: BTreeSet<String>Trait Implementations§
Source§impl AuthSession for SessionView
impl AuthSession for SessionView
fn retained_session_view(&self) -> Option<&SessionView>
fn additional_fields(&self) -> Map<String, Value>
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_team_id(&self) -> Option<&str>
Source§fn secondary_snapshot(&self) -> AuthResult<Value>
fn secondary_snapshot(&self) -> AuthResult<Value>
Encode the complete typed model for a trusted secondary backend.
Custom entities can opt in without adding a Deserialize bound to all schemas.
Source§fn from_secondary_snapshot(_snapshot: Value) -> AuthResult<Self>
fn from_secondary_snapshot(_snapshot: Value) -> AuthResult<Self>
Restore a model from a trusted secondary backend, before public projection.
fn adapter_snapshot(&self) -> Option<&AdapterOutput>
Source§impl Clone for SessionView
impl Clone for SessionView
Source§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
impl Eq for SessionView
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
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.