pub struct ConstraintsNotSupported {
pub reason: &'static str,
}Expand description
Reported by JwtVerifier::validate_constraints when the verifier cannot
(or won’t) enforce the requested VerifyConstraints. The middleware
surfaces this as 401 Unauthorized — fail-closed by design.
Fields§
§reason: &'static strHuman-readable diagnostic surfaced in the 401 response body.
Trait Implementations§
Source§impl Clone for ConstraintsNotSupported
impl Clone for ConstraintsNotSupported
Source§fn clone(&self) -> ConstraintsNotSupported
fn clone(&self) -> ConstraintsNotSupported
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 ConstraintsNotSupported
impl Debug for ConstraintsNotSupported
Auto Trait Implementations§
impl Freeze for ConstraintsNotSupported
impl RefUnwindSafe for ConstraintsNotSupported
impl Send for ConstraintsNotSupported
impl Sync for ConstraintsNotSupported
impl Unpin for ConstraintsNotSupported
impl UnsafeUnpin for ConstraintsNotSupported
impl UnwindSafe for ConstraintsNotSupported
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