#[non_exhaustive]pub struct NewSession {
pub access_token: String,
pub claims: Claims,
pub refresh: Rotated,
pub standing: Option<SignedStandingBinding>,
}Expand description
A freshly established or rotated session: the minted access token (hand to
the client as a bearer/cookie), the Claims it carries (so the caller can
read jti / expiry without re-verifying), and the refresh token + record.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_token: StringThe signed/encrypted access token string.
claims: ClaimsThe claims embedded in access_token, including the freshly minted jti.
refresh: RotatedThe refresh token + persisted record (the stateful, rotatable half).
standing: Option<SignedStandingBinding>The standing node binding (R732-F5) — present exactly when the access
token is peer-key-bound and the binding is
DeviceBinding::LanPair. It is the credential an offline edge
admits the node on; the access token keeps its short TTL.
Trait Implementations§
Source§impl Clone for NewSession
impl Clone for NewSession
Auto Trait Implementations§
impl Freeze for NewSession
impl RefUnwindSafe for NewSession
impl Send for NewSession
impl Sync for NewSession
impl Unpin for NewSession
impl UnsafeUnpin for NewSession
impl UnwindSafe for NewSession
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