#[non_exhaustive]pub struct ToxicityDetectionSettingsBuilder { /* private fields */ }Expand description
A builder for ToxicityDetectionSettings.
Implementations§
source§impl ToxicityDetectionSettingsBuilder
impl ToxicityDetectionSettingsBuilder
sourcepub fn toxicity_categories(self, input: ToxicityCategory) -> Self
pub fn toxicity_categories(self, input: ToxicityCategory) -> Self
Appends an item to toxicity_categories.
To override the contents of this collection use set_toxicity_categories.
If you include ToxicityDetection in your transcription request, you must also include ToxicityCategories. The only accepted value for this parameter is ALL.
sourcepub fn set_toxicity_categories(
self,
input: Option<Vec<ToxicityCategory>>
) -> Self
pub fn set_toxicity_categories( self, input: Option<Vec<ToxicityCategory>> ) -> Self
If you include ToxicityDetection in your transcription request, you must also include ToxicityCategories. The only accepted value for this parameter is ALL.
sourcepub fn get_toxicity_categories(&self) -> &Option<Vec<ToxicityCategory>>
pub fn get_toxicity_categories(&self) -> &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.
sourcepub fn build(self) -> ToxicityDetectionSettings
pub fn build(self) -> ToxicityDetectionSettings
Consumes the builder and constructs a ToxicityDetectionSettings.
Trait Implementations§
source§impl Clone for ToxicityDetectionSettingsBuilder
impl Clone for ToxicityDetectionSettingsBuilder
source§fn clone(&self) -> ToxicityDetectionSettingsBuilder
fn clone(&self) -> ToxicityDetectionSettingsBuilder
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 Default for ToxicityDetectionSettingsBuilder
impl Default for ToxicityDetectionSettingsBuilder
source§fn default() -> ToxicityDetectionSettingsBuilder
fn default() -> ToxicityDetectionSettingsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ToxicityDetectionSettingsBuilder> for ToxicityDetectionSettingsBuilder
impl PartialEq<ToxicityDetectionSettingsBuilder> for ToxicityDetectionSettingsBuilder
source§fn eq(&self, other: &ToxicityDetectionSettingsBuilder) -> bool
fn eq(&self, other: &ToxicityDetectionSettingsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ToxicityDetectionSettingsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ToxicityDetectionSettingsBuilder
impl Send for ToxicityDetectionSettingsBuilder
impl Sync for ToxicityDetectionSettingsBuilder
impl Unpin for ToxicityDetectionSettingsBuilder
impl UnwindSafe for ToxicityDetectionSettingsBuilder
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