#[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) -> Result<ToxicityDetectionSettings, BuildError>
pub fn build(self) -> Result<ToxicityDetectionSettings, BuildError>
Consumes the builder and constructs a ToxicityDetectionSettings
.
This method will fail if any of the following fields are not set:
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 for ToxicityDetectionSettingsBuilder
impl PartialEq 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.