pub struct ContentFilterConfig {
pub enabled: bool,
pub api_endpoint: String,
pub api_key: Option<String>,
pub block_controversial: bool,
pub blocked_categories: Vec<String>,
pub timeout_ms: u64,
}Expand description
Content filter configuration
Fields§
§enabled: boolEnable content filtering
api_endpoint: StringZen Guard API endpoint
api_key: Option<String>API key for Zen Guard
block_controversial: boolBlock controversial content (not just unsafe)
blocked_categories: Vec<String>Categories to block
timeout_ms: u64Timeout in milliseconds
Trait Implementations§
Source§impl Clone for ContentFilterConfig
impl Clone for ContentFilterConfig
Source§fn clone(&self) -> ContentFilterConfig
fn clone(&self) -> ContentFilterConfig
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 ContentFilterConfig
impl Debug for ContentFilterConfig
Source§impl Default for ContentFilterConfig
impl Default for ContentFilterConfig
Source§impl<'de> Deserialize<'de> for ContentFilterConfig
impl<'de> Deserialize<'de> for ContentFilterConfig
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 ContentFilterConfig
impl RefUnwindSafe for ContentFilterConfig
impl Send for ContentFilterConfig
impl Sync for ContentFilterConfig
impl Unpin for ContentFilterConfig
impl UnwindSafe for ContentFilterConfig
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