Struct aws_sdk_rekognition::types::ModerationLabel
source · #[non_exhaustive]pub struct ModerationLabel {
pub confidence: Option<f32>,
pub name: Option<String>,
pub parent_name: Option<String>,
}Expand description
Provides information about a single type of inappropriate, unwanted, or offensive content found in an image or video. Each type of moderated content has a label within a hierarchical taxonomy. For more information, see Content moderation in the Amazon Rekognition Developer Guide.
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.confidence: Option<f32>Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.
name: Option<String>The label name for the type of unsafe content detected in the image.
parent_name: Option<String>The name for the parent label. Labels at the top level of the hierarchy have the parent label "".
Implementations§
source§impl ModerationLabel
impl ModerationLabel
sourcepub fn confidence(&self) -> Option<f32>
pub fn confidence(&self) -> Option<f32>
Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The label name for the type of unsafe content detected in the image.
sourcepub fn parent_name(&self) -> Option<&str>
pub fn parent_name(&self) -> Option<&str>
The name for the parent label. Labels at the top level of the hierarchy have the parent label "".
source§impl ModerationLabel
impl ModerationLabel
sourcepub fn builder() -> ModerationLabelBuilder
pub fn builder() -> ModerationLabelBuilder
Creates a new builder-style object to manufacture ModerationLabel.
Trait Implementations§
source§impl Clone for ModerationLabel
impl Clone for ModerationLabel
source§fn clone(&self) -> ModerationLabel
fn clone(&self) -> ModerationLabel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ModerationLabel
impl Debug for ModerationLabel
source§impl PartialEq for ModerationLabel
impl PartialEq for ModerationLabel
source§fn eq(&self, other: &ModerationLabel) -> bool
fn eq(&self, other: &ModerationLabel) -> bool
self and other values to be equal, and is used
by ==.