#[non_exhaustive]pub enum UnkeyedJsonValuePolicy {
Redact,
PassThrough,
}Expand description
Controls whether unkeyed JSON scalar values are redacted or preserved.
Unkeyed scalars are root scalar values and scalar elements of arrays. Object property values remain keyed even when their field rule passes through.
§Examples
use qubit_redact::UnkeyedJsonValuePolicy;
assert_eq!(UnkeyedJsonValuePolicy::default(), UnkeyedJsonValuePolicy::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 unkeyed scalar values with the Secret opaque mask.
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