pub struct GuardTypeConfig {
pub patterns: Vec<PatternConfig>,
pub max_chars: Option<usize>,
pub max_tokens: Option<usize>,
pub redact_pattern: Option<String>,
pub severity_threshold: Option<Severity>,
pub block_unicode_escapes: bool,
pub block_base64: bool,
}Expand description
Type-specific guard configuration
Fields§
§patterns: Vec<PatternConfig>Patterns for pattern guard
max_chars: Option<usize>Maximum characters for length guard
max_tokens: Option<usize>Maximum tokens for length guard
redact_pattern: Option<String>Redact pattern for sanitize action
severity_threshold: Option<Severity>Severity threshold
block_unicode_escapes: boolBlock unicode escapes (encoding guard)
block_base64: boolBlock base64 (encoding guard)
Trait Implementations§
Source§impl Clone for GuardTypeConfig
impl Clone for GuardTypeConfig
Source§fn clone(&self) -> GuardTypeConfig
fn clone(&self) -> GuardTypeConfig
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 moreSource§impl Debug for GuardTypeConfig
impl Debug for GuardTypeConfig
Source§impl Default for GuardTypeConfig
impl Default for GuardTypeConfig
Source§fn default() -> GuardTypeConfig
fn default() -> GuardTypeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GuardTypeConfig
impl<'de> Deserialize<'de> for GuardTypeConfig
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 GuardTypeConfig
impl RefUnwindSafe for GuardTypeConfig
impl Send for GuardTypeConfig
impl Sync for GuardTypeConfig
impl Unpin for GuardTypeConfig
impl UnwindSafe for GuardTypeConfig
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