pub struct ContentReviewConfig {
pub enabled: bool,
pub default_rules: ContentReviewRules,
pub per_service: HashMap<String, ContentReviewRules>,
}Expand description
Full content-review configuration.
Fields§
§enabled: boolEnable/disable the guard entirely.
default_rules: ContentReviewRulesDefault rules applied when a service has no per-service entry.
per_service: HashMap<String, ContentReviewRules>Per-service overrides keyed by the service name produced by
crate::action::extract_action (e.g. "slack", "stripe").
Trait Implementations§
Source§impl Clone for ContentReviewConfig
impl Clone for ContentReviewConfig
Source§fn clone(&self) -> ContentReviewConfig
fn clone(&self) -> ContentReviewConfig
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 ContentReviewConfig
impl Debug for ContentReviewConfig
Source§impl Default for ContentReviewConfig
impl Default for ContentReviewConfig
Source§impl<'de> Deserialize<'de> for ContentReviewConfig
impl<'de> Deserialize<'de> for ContentReviewConfig
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 ContentReviewConfig
impl RefUnwindSafe for ContentReviewConfig
impl Send for ContentReviewConfig
impl Sync for ContentReviewConfig
impl Unpin for ContentReviewConfig
impl UnsafeUnpin for ContentReviewConfig
impl UnwindSafe for ContentReviewConfig
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