Enum diana::AuthVerdict [−][src]
pub enum AuthVerdict { Allow(AuthState), Block, Error(String), }
Expand description
This represents the decision as to whether or not a use is allowed through to an endpoint. You should only have to deal with this if you’re developing middleware for a custom integration.
Variants
The user should be allowed through, and their decoded authentication data (JWT payload without metadata) is attached.
The user should be blocked.
Error(String)
Some internal error occurred, the body of which is attached.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AuthVerdict
impl Send for AuthVerdict
impl Sync for AuthVerdict
impl Unpin for AuthVerdict
impl UnwindSafe for AuthVerdict
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V