pub struct SecretMatch {
pub kind: SecretKind,
pub start: usize,
pub end: usize,
pub matched_text: String,
}Expand description
A single detected secret with its location in the input text.
Fields§
§kind: SecretKindWhat kind of secret was detected.
start: usizeByte offset of the start of the match.
end: usizeByte offset of the end of the match (exclusive).
matched_text: StringThe matched text.
Trait Implementations§
Source§impl Clone for SecretMatch
impl Clone for SecretMatch
Source§fn clone(&self) -> SecretMatch
fn clone(&self) -> SecretMatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SecretMatch
impl RefUnwindSafe for SecretMatch
impl Send for SecretMatch
impl Sync for SecretMatch
impl Unpin for SecretMatch
impl UnsafeUnpin for SecretMatch
impl UnwindSafe for SecretMatch
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