#[non_exhaustive]pub struct ExplicitContentDetectionConfig {
pub model: String,
/* private fields */
}Expand description
Config for EXPLICIT_CONTENT_DETECTION.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: StringModel to use for explicit content detection. Supported values: “builtin/stable” (the default if unset) and “builtin/latest”.
Implementations§
Trait Implementations§
Source§impl Clone for ExplicitContentDetectionConfig
impl Clone for ExplicitContentDetectionConfig
Source§fn clone(&self) -> ExplicitContentDetectionConfig
fn clone(&self) -> ExplicitContentDetectionConfig
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 Default for ExplicitContentDetectionConfig
impl Default for ExplicitContentDetectionConfig
Source§fn default() -> ExplicitContentDetectionConfig
fn default() -> ExplicitContentDetectionConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExplicitContentDetectionConfig
impl PartialEq for ExplicitContentDetectionConfig
Source§fn eq(&self, other: &ExplicitContentDetectionConfig) -> bool
fn eq(&self, other: &ExplicitContentDetectionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExplicitContentDetectionConfig
Auto Trait Implementations§
impl Freeze for ExplicitContentDetectionConfig
impl RefUnwindSafe for ExplicitContentDetectionConfig
impl Send for ExplicitContentDetectionConfig
impl Sync for ExplicitContentDetectionConfig
impl Unpin for ExplicitContentDetectionConfig
impl UnsafeUnpin for ExplicitContentDetectionConfig
impl UnwindSafe for ExplicitContentDetectionConfig
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