#[non_exhaustive]pub enum BodyRedactionReason {
InvalidContentType,
InvalidJson,
InvalidOrTruncatedJson,
InvalidNdjson,
InvalidOrTruncatedNdjson,
InvalidFormUrlEncoded,
InvalidOrTruncatedFormUrlEncoded,
InvalidMultipart,
TruncatedMultipart,
UnsupportedMediaType,
OpaqueText,
}Expand description
Identifies why an HTTP body could not be represented structurally.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidContentType
The Content-Type header could not be interpreted safely.
InvalidJson
A complete JSON body was invalid.
InvalidOrTruncatedJson
A JSON capture was invalid or truncated.
InvalidNdjson
A complete newline-delimited JSON body was invalid.
InvalidOrTruncatedNdjson
A newline-delimited JSON capture was invalid or truncated.
InvalidFormUrlEncoded
A complete URL-encoded form body was invalid.
InvalidOrTruncatedFormUrlEncoded
A URL-encoded form capture was invalid or truncated.
InvalidMultipart
A complete multipart body was malformed or ambiguous.
TruncatedMultipart
A multipart capture was truncated and could not be parsed safely.
UnsupportedMediaType
A UTF-8 body used an unsupported media type.
OpaqueText
An opaque text body was hidden by policy.
Trait Implementations§
Source§impl Clone for BodyRedactionReason
impl Clone for BodyRedactionReason
Source§fn clone(&self) -> BodyRedactionReason
fn clone(&self) -> BodyRedactionReason
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 moreimpl Copy for BodyRedactionReason
Source§impl Debug for BodyRedactionReason
impl Debug for BodyRedactionReason
impl Eq for BodyRedactionReason
Source§impl PartialEq for BodyRedactionReason
impl PartialEq for BodyRedactionReason
impl StructuralPartialEq for BodyRedactionReason
Auto Trait Implementations§
impl Freeze for BodyRedactionReason
impl RefUnwindSafe for BodyRedactionReason
impl Send for BodyRedactionReason
impl Sync for BodyRedactionReason
impl Unpin for BodyRedactionReason
impl UnsafeUnpin for BodyRedactionReason
impl UnwindSafe for BodyRedactionReason
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