pub struct Session {
pub id: String,
pub subject: String,
pub issued_at: String,
pub expires_at: String,
pub amr: Vec<String>,
pub acr: String,
}Expand description
Canonical Session from spec/auth/_shared/0.1/session.schema.json.
Aligns with OIDC Core §2 / RFC 8176:
amr: authentication method references. VTI vocabulary uses"did"(challenge-response),"passkey"(WebAuthn assertion),"vta"(verifiable-trust-agent approval).acr: authentication context class reference. Typical values"aal1"(single-factor DID),"aal2"(second possession/ biometric factor),"aal3"(hardware-bound second factor).
Fields§
§id: String§subject: String§issued_at: StringISO-8601 timestamp the session was created.
expires_at: StringISO-8601 timestamp the session ceases to be valid.
amr: Vec<String>§acr: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
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
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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