pub struct ContentReviewRules {
pub detect_pii: bool,
pub detect_profanity: bool,
pub banned_words: Vec<String>,
pub extra_patterns: Vec<String>,
pub max_scan_bytes: usize,
}Expand description
Per-service review rules. Missing fields fall back to defaults.
Fields§
§detect_pii: boolEnable PII detection on the message body. Default true.
detect_profanity: boolEnable the profanity filter. Default true.
banned_words: Vec<String>Case-insensitive words that trigger a Deny.
extra_patterns: Vec<String>Extra regex patterns whose match triggers a Deny.
max_scan_bytes: usizeMaximum bytes of outbound text to scan. Longer inputs are truncated at a UTF-8 boundary.
Trait Implementations§
Source§impl Clone for ContentReviewRules
impl Clone for ContentReviewRules
Source§fn clone(&self) -> ContentReviewRules
fn clone(&self) -> ContentReviewRules
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 ContentReviewRules
impl Debug for ContentReviewRules
Source§impl Default for ContentReviewRules
impl Default for ContentReviewRules
Source§fn default() -> ContentReviewRules
fn default() -> ContentReviewRules
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentReviewRules
impl<'de> Deserialize<'de> for ContentReviewRules
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 ContentReviewRules
impl RefUnwindSafe for ContentReviewRules
impl Send for ContentReviewRules
impl Sync for ContentReviewRules
impl Unpin for ContentReviewRules
impl UnsafeUnpin for ContentReviewRules
impl UnwindSafe for ContentReviewRules
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