#[non_exhaustive]pub struct ToxicityDetectionSettings {
    pub toxicity_categories: Option<Vec<ToxicityCategory>>,
}Expand description
Contains ToxicityCategories, which is a required parameter if you want to enable toxicity detection (ToxicityDetection) in your transcription request.
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.toxicity_categories: Option<Vec<ToxicityCategory>> If you include ToxicityDetection in your transcription request, you must also include ToxicityCategories. The only accepted value for this parameter is ALL.
Implementations§
source§impl ToxicityDetectionSettings
 
impl ToxicityDetectionSettings
sourcepub fn toxicity_categories(&self) -> Option<&[ToxicityCategory]>
 
pub fn toxicity_categories(&self) -> Option<&[ToxicityCategory]>
 If you include ToxicityDetection in your transcription request, you must also include ToxicityCategories. The only accepted value for this parameter is ALL.
source§impl ToxicityDetectionSettings
 
impl ToxicityDetectionSettings
sourcepub fn builder() -> ToxicityDetectionSettingsBuilder
 
pub fn builder() -> ToxicityDetectionSettingsBuilder
Creates a new builder-style object to manufacture ToxicityDetectionSettings.
Trait Implementations§
source§impl Clone for ToxicityDetectionSettings
 
impl Clone for ToxicityDetectionSettings
source§fn clone(&self) -> ToxicityDetectionSettings
 
fn clone(&self) -> ToxicityDetectionSettings
Returns a copy 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 ToxicityDetectionSettings
 
impl Debug for ToxicityDetectionSettings
source§impl PartialEq<ToxicityDetectionSettings> for ToxicityDetectionSettings
 
impl PartialEq<ToxicityDetectionSettings> for ToxicityDetectionSettings
source§fn eq(&self, other: &ToxicityDetectionSettings) -> bool
 
fn eq(&self, other: &ToxicityDetectionSettings) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ToxicityDetectionSettings
Auto Trait Implementations§
impl RefUnwindSafe for ToxicityDetectionSettings
impl Send for ToxicityDetectionSettings
impl Sync for ToxicityDetectionSettings
impl Unpin for ToxicityDetectionSettings
impl UnwindSafe for ToxicityDetectionSettings
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