pub struct RedactedMatch {
pub kind: &'static str,
pub start: usize,
pub len: usize,
}Expand description
One detected secret. kind is a stable string id usable in
telemetry and human-readable output.
Fields§
§kind: &'static str§start: usizeByte offset within the ORIGINAL (pre-redaction) text where the match started.
len: usizeLength of the matched run (bytes, original text).
Trait Implementations§
Source§impl Clone for RedactedMatch
impl Clone for RedactedMatch
Source§fn clone(&self) -> RedactedMatch
fn clone(&self) -> RedactedMatch
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 RedactedMatch
impl Debug for RedactedMatch
impl Eq for RedactedMatch
Source§impl PartialEq for RedactedMatch
impl PartialEq for RedactedMatch
Source§fn eq(&self, other: &RedactedMatch) -> bool
fn eq(&self, other: &RedactedMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RedactedMatch
impl Serialize for RedactedMatch
impl StructuralPartialEq for RedactedMatch
Auto Trait Implementations§
impl Freeze for RedactedMatch
impl RefUnwindSafe for RedactedMatch
impl Send for RedactedMatch
impl Sync for RedactedMatch
impl Unpin for RedactedMatch
impl UnsafeUnpin for RedactedMatch
impl UnwindSafe for RedactedMatch
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