Struct aws_sdk_comprehend::types::builders::ToxicContentBuilder
source · #[non_exhaustive]pub struct ToxicContentBuilder { /* private fields */ }Expand description
A builder for ToxicContent.
Implementations§
source§impl ToxicContentBuilder
impl ToxicContentBuilder
sourcepub fn name(self, input: ToxicContentType) -> Self
pub fn name(self, input: ToxicContentType) -> Self
The name of the toxic content type.
sourcepub fn set_name(self, input: Option<ToxicContentType>) -> Self
pub fn set_name(self, input: Option<ToxicContentType>) -> Self
The name of the toxic content type.
sourcepub fn get_name(&self) -> &Option<ToxicContentType>
pub fn get_name(&self) -> &Option<ToxicContentType>
The name of the toxic content type.
sourcepub fn score(self, input: f32) -> Self
pub fn score(self, input: f32) -> Self
Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.
sourcepub fn set_score(self, input: Option<f32>) -> Self
pub fn set_score(self, input: Option<f32>) -> Self
Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.
sourcepub fn get_score(&self) -> &Option<f32>
pub fn get_score(&self) -> &Option<f32>
Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.
sourcepub fn build(self) -> ToxicContent
pub fn build(self) -> ToxicContent
Consumes the builder and constructs a ToxicContent.
Trait Implementations§
source§impl Clone for ToxicContentBuilder
impl Clone for ToxicContentBuilder
source§fn clone(&self) -> ToxicContentBuilder
fn clone(&self) -> ToxicContentBuilder
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 ToxicContentBuilder
impl Debug for ToxicContentBuilder
source§impl Default for ToxicContentBuilder
impl Default for ToxicContentBuilder
source§fn default() -> ToxicContentBuilder
fn default() -> ToxicContentBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ToxicContentBuilder
impl PartialEq for ToxicContentBuilder
source§fn eq(&self, other: &ToxicContentBuilder) -> bool
fn eq(&self, other: &ToxicContentBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ToxicContentBuilder
Auto Trait Implementations§
impl Freeze for ToxicContentBuilder
impl RefUnwindSafe for ToxicContentBuilder
impl Send for ToxicContentBuilder
impl Sync for ToxicContentBuilder
impl Unpin for ToxicContentBuilder
impl UnwindSafe for ToxicContentBuilder
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.