pub trait AuthSession:
Clone
+ Send
+ Sync
+ Serialize
+ Debug
+ 'static {
// Required methods
fn id(&self) -> &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) -> &str;
fn impersonated_by(&self) -> Option<&str>;
fn active_organization_id(&self) -> Option<&str>;
fn active(&self) -> bool;
}Expand description
Trait representing a session entity.
Required Methods§
fn id(&self) -> &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) -> &str
fn impersonated_by(&self) -> Option<&str>
fn active_organization_id(&self) -> Option<&str>
fn active(&self) -> bool
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.