#[non_exhaustive]pub enum UnkeyedJsonValuePolicy {
Redact,
PassThrough,
}Expand description
Controls whether unkeyed JSON scalar values are redacted or preserved.
Self::Redact is the safe default. Self::PassThrough is an explicit
diagnostic opt-in and may expose application secrets.
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 unkeyed scalar values with a fixed redaction marker.
PassThrough
Preserves unkeyed scalar values for diagnostics.
Trait Implementations§
Source§impl Clone for UnkeyedJsonValuePolicy
impl Clone for UnkeyedJsonValuePolicy
Source§fn clone(&self) -> UnkeyedJsonValuePolicy
fn clone(&self) -> UnkeyedJsonValuePolicy
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 UnkeyedJsonValuePolicy
Source§impl Debug for UnkeyedJsonValuePolicy
impl Debug for UnkeyedJsonValuePolicy
Source§impl Default for UnkeyedJsonValuePolicy
impl Default for UnkeyedJsonValuePolicy
Source§fn default() -> UnkeyedJsonValuePolicy
fn default() -> UnkeyedJsonValuePolicy
Returns the “default value” for a type. Read more
impl Eq for UnkeyedJsonValuePolicy
Source§impl PartialEq for UnkeyedJsonValuePolicy
impl PartialEq for UnkeyedJsonValuePolicy
impl StructuralPartialEq for UnkeyedJsonValuePolicy
Auto Trait Implementations§
impl Freeze for UnkeyedJsonValuePolicy
impl RefUnwindSafe for UnkeyedJsonValuePolicy
impl Send for UnkeyedJsonValuePolicy
impl Sync for UnkeyedJsonValuePolicy
impl Unpin for UnkeyedJsonValuePolicy
impl UnsafeUnpin for UnkeyedJsonValuePolicy
impl UnwindSafe for UnkeyedJsonValuePolicy
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