pub struct RedactionRule {
pub pointer: String,
pub replacement: Option<String>,
}Expand description
One JSON Pointer redaction rule.
Fields§
§pointer: StringCanonical JSON Pointer to redact, for example /secret/token.
replacement: Option<String>Replacement string for this pointer. Falls back to the policy default.
Trait Implementations§
Source§impl Clone for RedactionRule
impl Clone for RedactionRule
Source§fn clone(&self) -> RedactionRule
fn clone(&self) -> RedactionRule
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 moreSource§impl Debug for RedactionRule
impl Debug for RedactionRule
Source§impl<'de> Deserialize<'de> for RedactionRule
impl<'de> Deserialize<'de> for RedactionRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RedactionRule
impl PartialEq for RedactionRule
Source§fn eq(&self, other: &RedactionRule) -> bool
fn eq(&self, other: &RedactionRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RedactionRule
impl Serialize for RedactionRule
impl Eq for RedactionRule
impl StructuralPartialEq for RedactionRule
Auto Trait Implementations§
impl Freeze for RedactionRule
impl RefUnwindSafe for RedactionRule
impl Send for RedactionRule
impl Sync for RedactionRule
impl Unpin for RedactionRule
impl UnsafeUnpin for RedactionRule
impl UnwindSafe for RedactionRule
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