pub enum GuardViolation {
MissingHeader,
MismatchedHeader,
AuthorizationHeader,
RequireAuth,
}Expand description
Which rule failed (the reference’s violation_type values, carried for
observability).
Variants§
MissingHeader
required_headers entry absent or empty.
MismatchedHeader
required_headers entry with a different value.
AuthorizationHeader
The authorization_header_required presence check failed
(violation_type="authorization_header").
RequireAuth
The auth_required / api_key_required path failed
(violation_type="require_auth").
Trait Implementations§
Source§impl Clone for GuardViolation
impl Clone for GuardViolation
impl Copy for GuardViolation
Source§impl Debug for GuardViolation
impl Debug for GuardViolation
impl Eq for GuardViolation
Source§impl PartialEq for GuardViolation
impl PartialEq for GuardViolation
impl StructuralPartialEq for GuardViolation
Auto Trait Implementations§
impl Freeze for GuardViolation
impl RefUnwindSafe for GuardViolation
impl Send for GuardViolation
impl Sync for GuardViolation
impl Unpin for GuardViolation
impl UnsafeUnpin for GuardViolation
impl UnwindSafe for GuardViolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.