pub struct SecretEntry {
pub content: String,
pub mode: SecretMode,
pub replacement: Option<String>,
}Expand description
A single secret entry to register with the obfuscator.
Fields§
§content: StringThe secret string to detect and replace.
mode: SecretMode"obfuscate" (default, reversible) or "replace" (one-way).
replacement: Option<String>For "replace" mode: the replacement text. If None, a
deterministic same-length replacement is generated.
Trait Implementations§
Source§impl Clone for SecretEntry
impl Clone for SecretEntry
Source§fn clone(&self) -> SecretEntry
fn clone(&self) -> SecretEntry
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 moreAuto Trait Implementations§
impl Freeze for SecretEntry
impl RefUnwindSafe for SecretEntry
impl Send for SecretEntry
impl Sync for SecretEntry
impl Unpin for SecretEntry
impl UnsafeUnpin for SecretEntry
impl UnwindSafe for SecretEntry
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