pub struct MaskMatch {
pub kind: String,
pub start: usize,
pub end: usize,
pub value: String,
}Expand description
One match found by Masker::mask.
Fields§
§kind: StringLowercase tag (built-in rules return their tag(), custom rules
return the user-provided label uppercased).
start: usizeByte-offset of the match start in the original string.
end: usizeByte-offset of the match end in the original string (exclusive).
value: StringThe matched substring (preserved so the caller can hash, log, etc.).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MaskMatch
impl<'de> Deserialize<'de> for MaskMatch
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
impl Eq for MaskMatch
impl StructuralPartialEq for MaskMatch
Auto Trait Implementations§
impl Freeze for MaskMatch
impl RefUnwindSafe for MaskMatch
impl Send for MaskMatch
impl Sync for MaskMatch
impl Unpin for MaskMatch
impl UnsafeUnpin for MaskMatch
impl UnwindSafe for MaskMatch
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