pub type AuthSession<User, Database, Sessions = SessionNullPool, Identifier = String> = AuthSession<User, Identifier, Sessions, Database>;Expand description
Authenticated Axum session using the application’s selected session store.
Aliased Type§
pub struct AuthSession<User, Database, Sessions = SessionNullPool, Identifier = String> {
pub id: Identifier,
pub current_user: Option<User>,
pub session: Session<Sessions>,
/* private fields */
}Fields§
§id: Identifier§current_user: Option<User>§session: Session<Sessions>