Skip to main content

MemorySession

Trait MemorySession 

Source
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§

Source

fn from_create( id: String, token: String, create: &CreateSession, now: DateTime<Utc>, ) -> Self

Construct a new session from creation data.

Source

fn set_expires_at(&mut self, at: DateTime<Utc>)

Source

fn set_active_organization_id(&mut self, org_id: Option<String>)

Source

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.

Implementors§