Struct aws_sdk_comprehend::operation::detect_toxic_content::builders::DetectToxicContentOutputBuilder
source · #[non_exhaustive]pub struct DetectToxicContentOutputBuilder { /* private fields */ }Expand description
A builder for DetectToxicContentOutput.
Implementations§
source§impl DetectToxicContentOutputBuilder
impl DetectToxicContentOutputBuilder
sourcepub fn result_list(self, input: ToxicLabels) -> Self
pub fn result_list(self, input: ToxicLabels) -> Self
Appends an item to result_list.
To override the contents of this collection use set_result_list.
Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.
sourcepub fn set_result_list(self, input: Option<Vec<ToxicLabels>>) -> Self
pub fn set_result_list(self, input: Option<Vec<ToxicLabels>>) -> Self
Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.
sourcepub fn get_result_list(&self) -> &Option<Vec<ToxicLabels>>
pub fn get_result_list(&self) -> &Option<Vec<ToxicLabels>>
Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.
sourcepub fn build(self) -> DetectToxicContentOutput
pub fn build(self) -> DetectToxicContentOutput
Consumes the builder and constructs a DetectToxicContentOutput.
Trait Implementations§
source§impl Clone for DetectToxicContentOutputBuilder
impl Clone for DetectToxicContentOutputBuilder
source§fn clone(&self) -> DetectToxicContentOutputBuilder
fn clone(&self) -> DetectToxicContentOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DetectToxicContentOutputBuilder
impl Default for DetectToxicContentOutputBuilder
source§fn default() -> DetectToxicContentOutputBuilder
fn default() -> DetectToxicContentOutputBuilder
source§impl PartialEq for DetectToxicContentOutputBuilder
impl PartialEq for DetectToxicContentOutputBuilder
source§fn eq(&self, other: &DetectToxicContentOutputBuilder) -> bool
fn eq(&self, other: &DetectToxicContentOutputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DetectToxicContentOutputBuilder
Auto Trait Implementations§
impl Freeze for DetectToxicContentOutputBuilder
impl RefUnwindSafe for DetectToxicContentOutputBuilder
impl Send for DetectToxicContentOutputBuilder
impl Sync for DetectToxicContentOutputBuilder
impl Unpin for DetectToxicContentOutputBuilder
impl UnwindSafe for DetectToxicContentOutputBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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 more