pub struct GuardBlock {
pub violation: GuardViolation,
pub status: u16,
pub body: String,
}Expand description
The block answer of a failed header or authentication rule: the status, the reference default message body (dynamic for the required-header shapes, which is why it is owned), and the violation type.
Fields§
§violation: GuardViolationWhich rule failed.
status: u16400 for the required-header shapes, 401 for every
authentication failure.
body: StringThe reference default message body.
Trait Implementations§
Source§impl Clone for GuardBlock
impl Clone for GuardBlock
Source§impl Debug for GuardBlock
impl Debug for GuardBlock
Source§impl Display for GuardBlock
impl Display for GuardBlock
impl Eq for GuardBlock
Source§impl PartialEq for GuardBlock
impl PartialEq for GuardBlock
impl StructuralPartialEq for GuardBlock
Auto Trait Implementations§
impl Freeze for GuardBlock
impl RefUnwindSafe for GuardBlock
impl Send for GuardBlock
impl Sync for GuardBlock
impl Unpin for GuardBlock
impl UnsafeUnpin for GuardBlock
impl UnwindSafe for GuardBlock
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.