#[non_exhaustive]pub struct DetectToxicContentOutput {
pub result_list: Option<Vec<ToxicLabels>>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.result_list: 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.
Implementations§
source§impl DetectToxicContentOutput
impl DetectToxicContentOutput
sourcepub fn result_list(&self) -> &[ToxicLabels]
pub fn result_list(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .result_list.is_none().
source§impl DetectToxicContentOutput
impl DetectToxicContentOutput
sourcepub fn builder() -> DetectToxicContentOutputBuilder
pub fn builder() -> DetectToxicContentOutputBuilder
Creates a new builder-style object to manufacture DetectToxicContentOutput.
Trait Implementations§
source§impl Clone for DetectToxicContentOutput
impl Clone for DetectToxicContentOutput
source§fn clone(&self) -> DetectToxicContentOutput
fn clone(&self) -> DetectToxicContentOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DetectToxicContentOutput
impl Debug for DetectToxicContentOutput
source§impl PartialEq for DetectToxicContentOutput
impl PartialEq for DetectToxicContentOutput
source§fn eq(&self, other: &DetectToxicContentOutput) -> bool
fn eq(&self, other: &DetectToxicContentOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for DetectToxicContentOutput
impl RequestId for DetectToxicContentOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.