Struct aws_sdk_comprehend::types::builders::ToxicLabelsBuilder
source · #[non_exhaustive]pub struct ToxicLabelsBuilder { /* private fields */ }Expand description
A builder for ToxicLabels.
Implementations§
source§impl ToxicLabelsBuilder
impl ToxicLabelsBuilder
sourcepub fn labels(self, input: ToxicContent) -> Self
pub fn labels(self, input: ToxicContent) -> Self
Appends an item to labels.
To override the contents of this collection use set_labels.
Array of toxic content types identified in the string.
sourcepub fn set_labels(self, input: Option<Vec<ToxicContent>>) -> Self
pub fn set_labels(self, input: Option<Vec<ToxicContent>>) -> Self
Array of toxic content types identified in the string.
sourcepub fn get_labels(&self) -> &Option<Vec<ToxicContent>>
pub fn get_labels(&self) -> &Option<Vec<ToxicContent>>
Array of toxic content types identified in the string.
sourcepub fn toxicity(self, input: f32) -> Self
pub fn toxicity(self, input: f32) -> Self
Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.
sourcepub fn set_toxicity(self, input: Option<f32>) -> Self
pub fn set_toxicity(self, input: Option<f32>) -> Self
Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.
sourcepub fn get_toxicity(&self) -> &Option<f32>
pub fn get_toxicity(&self) -> &Option<f32>
Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.
sourcepub fn build(self) -> ToxicLabels
pub fn build(self) -> ToxicLabels
Consumes the builder and constructs a ToxicLabels.
Trait Implementations§
source§impl Clone for ToxicLabelsBuilder
impl Clone for ToxicLabelsBuilder
source§fn clone(&self) -> ToxicLabelsBuilder
fn clone(&self) -> ToxicLabelsBuilder
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 ToxicLabelsBuilder
impl Debug for ToxicLabelsBuilder
source§impl Default for ToxicLabelsBuilder
impl Default for ToxicLabelsBuilder
source§fn default() -> ToxicLabelsBuilder
fn default() -> ToxicLabelsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ToxicLabelsBuilder
impl PartialEq for ToxicLabelsBuilder
source§fn eq(&self, other: &ToxicLabelsBuilder) -> bool
fn eq(&self, other: &ToxicLabelsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ToxicLabelsBuilder
Auto Trait Implementations§
impl Freeze for ToxicLabelsBuilder
impl RefUnwindSafe for ToxicLabelsBuilder
impl Send for ToxicLabelsBuilder
impl Sync for ToxicLabelsBuilder
impl Unpin for ToxicLabelsBuilder
impl UnwindSafe for ToxicLabelsBuilder
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.