pub enum Decision {
Allow(Option<String>),
Deny(Challenge),
}Expand description
The outcome of an authentication attempt.
Variants§
Allow(Option<String>)
Authenticated. Carries the principal used for per-key rate limiting (None when the
scheme has no stable identity, e.g. mode = "none").
Deny(Challenge)
Rejected. Carries the challenge to advertise in WWW-Authenticate (if any).
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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