pub struct RedactionRule {Show 16 fields
pub name: String,
pub description: Option<String>,
pub pattern: Option<String>,
pub pattern_type: String,
pub replace_with: String,
pub version: String,
pub created_at: String,
pub author: String,
pub updated_at: String,
pub multiline: bool,
pub dot_matches_new_line: bool,
pub opt_in: bool,
pub programmatic_validation: bool,
pub enabled: Option<bool>,
pub severity: Option<String>,
pub tags: Option<Vec<String>>,
}Expand description
Represents a single redaction rule used by the Regex engine.
Fields§
§name: StringUnique identifier for the rule (e.g., “aws_access_key”).
description: Option<String>Human-readable description of what the rule targets.
pattern: Option<String>The regex pattern string.
pattern_type: StringThe type of pattern (e.g., “regex”, “entropy”).
replace_with: StringThe string to replace matches with.
version: String§created_at: String§updated_at: String§multiline: boolIf true, enables multiline mode for the regex engine.
dot_matches_new_line: boolIf true, the dot character . in regex will match newlines.
opt_in: boolIf true, the rule is disabled unless explicitly enabled in the profile.
programmatic_validation: boolIf true, requires external programmatic validation (e.g., SSN checksum).
enabled: Option<bool>Explicit override for enabling/disabling the rule.
severity: Option<String>Security severity level (e.g., “high”, “medium”).
Metadata tags for categorization.
Trait Implementations§
Source§impl Clone for RedactionRule
impl Clone for RedactionRule
Source§fn clone(&self) -> RedactionRule
fn clone(&self) -> RedactionRule
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 RedactionRule
impl Debug for RedactionRule
Source§impl Default for RedactionRule
impl Default for RedactionRule
Source§impl<'de> Deserialize<'de> for RedactionRulewhere
RedactionRule: Default,
impl<'de> Deserialize<'de> for RedactionRulewhere
RedactionRule: 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
impl Eq for RedactionRule
Source§impl Hash for RedactionRule
impl Hash for RedactionRule
Source§impl PartialEq for RedactionRule
impl PartialEq for RedactionRule
Source§fn eq(&self, other: &RedactionRule) -> bool
fn eq(&self, other: &RedactionRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RedactionRule
impl Serialize for RedactionRule
impl StructuralPartialEq for RedactionRule
Auto Trait Implementations§
impl Freeze for RedactionRule
impl RefUnwindSafe for RedactionRule
impl Send for RedactionRule
impl Sync for RedactionRule
impl Unpin for RedactionRule
impl UnsafeUnpin for RedactionRule
impl UnwindSafe for RedactionRule
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.