#[non_exhaustive]pub struct ScrubConfig {
pub enabled: bool,
}Expand description
Configuration for secret scrubbing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolWhether secret scrubbing is applied at save time. Defaults to true.
Disabling this is an explicit opt-out: callers who set this to
false are asserting that content passed to
crate::ContextForge::save will never contain secrets, or that
they have their own scrubbing in place.
Trait Implementations§
Source§impl Clone for ScrubConfig
impl Clone for ScrubConfig
Source§fn clone(&self) -> ScrubConfig
fn clone(&self) -> ScrubConfig
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 ScrubConfig
impl Debug for ScrubConfig
Source§impl Default for ScrubConfig
impl Default for ScrubConfig
Source§impl<'de> Deserialize<'de> for ScrubConfig
impl<'de> Deserialize<'de> for ScrubConfig
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
Auto Trait Implementations§
impl Freeze for ScrubConfig
impl RefUnwindSafe for ScrubConfig
impl Send for ScrubConfig
impl Sync for ScrubConfig
impl Unpin for ScrubConfig
impl UnsafeUnpin for ScrubConfig
impl UnwindSafe for ScrubConfig
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