Enum AuthOutcome
pub enum AuthOutcome {
Authenticated(Principal),
Trusted(Principal),
Denied {
reason: DenyReason,
},
}Expand description
The single result every auth surface returns. Misroute/timeout/malformed ⇒
AuthOutcome::Denied, NEVER a silent allow.
Variants§
Authenticated(Principal)
A distinct identity source authenticated the caller.
Trusted(Principal)
An explicitly-trusted connection with no distinct IdP principal — carries
the Principal::shared_operator sentinel so callers never branch on
Option.
Denied
The credential was rejected.
Fields
§
reason: DenyReasonImplementations§
Source§impl AuthOutcome
impl AuthOutcome
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) · §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
Source§impl PartialEq for AuthOutcome
impl PartialEq for AuthOutcome
impl Eq for AuthOutcome
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<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