pub struct ContentBlock {
pub violation: ContentViolation,
pub status: u16,
pub body: &'static str,
pub reason: String,
}Expand description
The block answer of a failed size or type check: the status and default
message body the reference’s create_error_response answers with, plus
the log_activity reason string.
Fields§
§violation: ContentViolationWhich sub-check blocked.
status: u16413 for the size block, 415 for the type block.
body: &'static strThe reference default message body.
reason: StringThe reference log_activity reason ("Request size {n} exceeds limit: {max}" / "Invalid content type: {type}").
Trait Implementations§
Source§impl Clone for ContentBlock
impl Clone for ContentBlock
Source§impl Debug for ContentBlock
impl Debug for ContentBlock
impl Eq for ContentBlock
Source§impl PartialEq for ContentBlock
impl PartialEq for ContentBlock
impl StructuralPartialEq for ContentBlock
Auto Trait Implementations§
impl Freeze for ContentBlock
impl RefUnwindSafe for ContentBlock
impl Send for ContentBlock
impl Sync for ContentBlock
impl Unpin for ContentBlock
impl UnsafeUnpin for ContentBlock
impl UnwindSafe for ContentBlock
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.