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 ==.