#[non_exhaustive]pub enum BodyRedactionStatus {
Empty,
Structured,
PassedThrough,
Redacted(BodyRedactionReason),
Binary,
}Expand description
Describes how an HTTP body was represented for diagnostics.
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.
Empty
The available bounded body bytes were empty.
Structured
Structured parsing and configured field redaction succeeded.
PassedThrough
Policy explicitly allowed at least one value to remain visible.
Redacted(BodyRedactionReason)
The complete body representation was replaced fail-closed.
Tuple Fields
§
0: BodyRedactionReasonReason a structured or visible representation was unsafe.
Binary
Non-UTF-8 binary data was represented only by a size summary.
Trait Implementations§
Source§impl Clone for BodyRedactionStatus
impl Clone for BodyRedactionStatus
Source§fn clone(&self) -> BodyRedactionStatus
fn clone(&self) -> BodyRedactionStatus
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 BodyRedactionStatus
Source§impl Debug for BodyRedactionStatus
impl Debug for BodyRedactionStatus
impl Eq for BodyRedactionStatus
Source§impl PartialEq for BodyRedactionStatus
impl PartialEq for BodyRedactionStatus
impl StructuralPartialEq for BodyRedactionStatus
Auto Trait Implementations§
impl Freeze for BodyRedactionStatus
impl RefUnwindSafe for BodyRedactionStatus
impl Send for BodyRedactionStatus
impl Sync for BodyRedactionStatus
impl Unpin for BodyRedactionStatus
impl UnsafeUnpin for BodyRedactionStatus
impl UnwindSafe for BodyRedactionStatus
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