#[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.impl StructuralPartialEq for DetectToxicContentOutput
Auto Trait Implementations§
impl Freeze for DetectToxicContentOutput
impl RefUnwindSafe for DetectToxicContentOutput
impl Send for DetectToxicContentOutput
impl Sync for DetectToxicContentOutput
impl Unpin for DetectToxicContentOutput
impl UnwindSafe for DetectToxicContentOutput
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> 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