#[non_exhaustive]pub enum TextBodyPolicy {
Redact,
PassThrough,
}Expand description
Controls whether opaque HTTP text is redacted or rendered unchanged.
Self::Redact is the safe default. Self::PassThrough is an explicit
diagnostic opt-in and may expose application secrets.
§Examples
use qubit_redact::formats::http::TextBodyPolicy;
assert_eq!(TextBodyPolicy::default(), TextBodyPolicy::Redact);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.
Redact
Replaces opaque text with a redaction marker.
PassThrough
Preserves opaque text for diagnostics.
Trait Implementations§
Source§impl Clone for TextBodyPolicy
impl Clone for TextBodyPolicy
Source§fn clone(&self) -> TextBodyPolicy
fn clone(&self) -> TextBodyPolicy
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 TextBodyPolicy
Source§impl Debug for TextBodyPolicy
impl Debug for TextBodyPolicy
Source§impl Default for TextBodyPolicy
impl Default for TextBodyPolicy
Source§fn default() -> TextBodyPolicy
fn default() -> TextBodyPolicy
Returns the “default value” for a type. Read more
impl Eq for TextBodyPolicy
Source§impl PartialEq for TextBodyPolicy
impl PartialEq for TextBodyPolicy
impl StructuralPartialEq for TextBodyPolicy
Auto Trait Implementations§
impl Freeze for TextBodyPolicy
impl RefUnwindSafe for TextBodyPolicy
impl Send for TextBodyPolicy
impl Sync for TextBodyPolicy
impl Unpin for TextBodyPolicy
impl UnsafeUnpin for TextBodyPolicy
impl UnwindSafe for TextBodyPolicy
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