pub struct DataScrubbingConfig {
pub exclude_fields: Vec<String>,
pub scrub_data: bool,
pub scrub_ip_addresses: bool,
pub sensitive_fields: Vec<String>,
pub scrub_defaults: bool,
/* private fields */
}
Expand description
Configuration for Sentry’s datascrubbing
Fields§
§exclude_fields: Vec<String>
List with the fields to be excluded.
scrub_data: bool
Toggles all data scrubbing on or off.
scrub_ip_addresses: bool
Should ip addresses be scrubbed from messages?
sensitive_fields: Vec<String>
List of sensitive fields to be scrubbed from the messages.
scrub_defaults: bool
Controls whether default fields will be scrubbed.
Implementations§
source§impl DataScrubbingConfig
impl DataScrubbingConfig
sourcepub fn new_disabled() -> Self
pub fn new_disabled() -> Self
Creates a new data scrubbing configuration that does nothing on the event.
sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Returns true if datascrubbing is disabled.
sourcepub fn pii_config(&self) -> Result<&Option<PiiConfig>, &PiiConfigError>
pub fn pii_config(&self) -> Result<&Option<PiiConfig>, &PiiConfigError>
Get the PII config derived from datascrubbing settings.
This can be computationally expensive when called for the first time. The result is cached internally and reused on the second call.
sourcepub fn pii_config_uncached(&self) -> Result<Option<PiiConfig>, PiiConfigError>
pub fn pii_config_uncached(&self) -> Result<Option<PiiConfig>, PiiConfigError>
Like pii_config
but without internal caching.
Trait Implementations§
source§impl Clone for DataScrubbingConfig
impl Clone for DataScrubbingConfig
source§fn clone(&self) -> DataScrubbingConfig
fn clone(&self) -> DataScrubbingConfig
Returns a copy 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 moresource§impl Debug for DataScrubbingConfig
impl Debug for DataScrubbingConfig
source§impl Default for DataScrubbingConfig
impl Default for DataScrubbingConfig
source§fn default() -> DataScrubbingConfig
fn default() -> DataScrubbingConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DataScrubbingConfigwhere
DataScrubbingConfig: Default,
impl<'de> Deserialize<'de> for DataScrubbingConfigwhere
DataScrubbingConfig: Default,
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 DataScrubbingConfig
impl RefUnwindSafe for DataScrubbingConfig
impl Send for DataScrubbingConfig
impl Sync for DataScrubbingConfig
impl Unpin for DataScrubbingConfig
impl UnwindSafe for DataScrubbingConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)