pub struct AuthOutcome {
pub principal: Principal,
pub expires_at_ms: Option<i64>,
}Expand description
Outcome of an OAUTHBEARER validation: the authenticated principal plus the
token’s expiry. The expiry populates
SaslAuthenticateResponse.session_lifetime_ms and what the dispatch loop
uses to schedule per-connection re-auth deadlines (KIP-368).
Fields§
§principal: Principal§expires_at_ms: Option<i64>Token expiry as Unix epoch milliseconds. None means “no expiry / no
re-auth required” — reserved for future non-OAuth paths. For
OAUTHBEARER this is always Some (validators reject tokens without
exp).
Trait Implementations§
Source§impl Clone for AuthOutcome
impl Clone for AuthOutcome
Source§fn clone(&self) -> AuthOutcome
fn clone(&self) -> AuthOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthOutcome
impl Debug for AuthOutcome
impl Eq for AuthOutcome
Source§impl PartialEq for AuthOutcome
impl PartialEq for AuthOutcome
Source§fn eq(&self, other: &AuthOutcome) -> bool
fn eq(&self, other: &AuthOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthOutcome
Auto Trait Implementations§
impl Freeze for AuthOutcome
impl RefUnwindSafe for AuthOutcome
impl Send for AuthOutcome
impl Sync for AuthOutcome
impl Unpin for AuthOutcome
impl UnsafeUnpin for AuthOutcome
impl UnwindSafe for AuthOutcome
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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