pub enum ContentViolation {
MaxRequestSize,
ContentType,
}Expand description
Which sub-check blocked the request (the reference’s
violation_type event fields, carried for observability).
Variants§
MaxRequestSize
The content-length crossed max_request_size
(violation_type="max_request_size").
ContentType
The media type was not in allowed_content_types
(violation_type="content_type").
Trait Implementations§
Source§impl Clone for ContentViolation
impl Clone for ContentViolation
impl Copy for ContentViolation
Source§impl Debug for ContentViolation
impl Debug for ContentViolation
impl Eq for ContentViolation
Source§impl PartialEq for ContentViolation
impl PartialEq for ContentViolation
impl StructuralPartialEq for ContentViolation
Auto Trait Implementations§
impl Freeze for ContentViolation
impl RefUnwindSafe for ContentViolation
impl Send for ContentViolation
impl Sync for ContentViolation
impl Unpin for ContentViolation
impl UnsafeUnpin for ContentViolation
impl UnwindSafe for ContentViolation
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.