pub trait MemorySession: AuthSession {
// Required methods
fn from_create(
id: String,
token: String,
create: &CreateSession,
now: DateTime<Utc>,
) -> Self;
fn set_expires_at(&mut self, at: DateTime<Utc>);
fn set_active_organization_id(&mut self, org_id: Option<String>);
fn set_updated_at(&mut self, at: DateTime<Utc>);
}Expand description
Construction and mutation for session entities stored in memory.
Required Methods§
Sourcefn from_create(
id: String,
token: String,
create: &CreateSession,
now: DateTime<Utc>,
) -> Self
fn from_create( id: String, token: String, create: &CreateSession, now: DateTime<Utc>, ) -> Self
Construct a new session from creation data.
fn set_expires_at(&mut self, at: DateTime<Utc>)
fn set_active_organization_id(&mut self, org_id: Option<String>)
fn set_updated_at(&mut self, at: DateTime<Utc>)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.