#[non_exhaustive]pub struct DetectLabelsImageForeground {
pub quality: Option<DetectLabelsImageQuality>,
pub dominant_colors: Option<Vec<DominantColor>>,
}Expand description
The foreground of the image with regard to image quality and dominant colors.
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.quality: Option<DetectLabelsImageQuality>The quality of the image foreground as defined by brightness and sharpness.
dominant_colors: Option<Vec<DominantColor>>The dominant colors found in the foreground of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
Implementations§
source§impl DetectLabelsImageForeground
impl DetectLabelsImageForeground
sourcepub fn quality(&self) -> Option<&DetectLabelsImageQuality>
pub fn quality(&self) -> Option<&DetectLabelsImageQuality>
The quality of the image foreground as defined by brightness and sharpness.
sourcepub fn dominant_colors(&self) -> &[DominantColor]
pub fn dominant_colors(&self) -> &[DominantColor]
The dominant colors found in the foreground of an image, defined with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .dominant_colors.is_none().
source§impl DetectLabelsImageForeground
impl DetectLabelsImageForeground
sourcepub fn builder() -> DetectLabelsImageForegroundBuilder
pub fn builder() -> DetectLabelsImageForegroundBuilder
Creates a new builder-style object to manufacture DetectLabelsImageForeground.
Trait Implementations§
source§impl Clone for DetectLabelsImageForeground
impl Clone for DetectLabelsImageForeground
source§fn clone(&self) -> DetectLabelsImageForeground
fn clone(&self) -> DetectLabelsImageForeground
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DetectLabelsImageForeground
impl Debug for DetectLabelsImageForeground
source§impl PartialEq for DetectLabelsImageForeground
impl PartialEq for DetectLabelsImageForeground
source§fn eq(&self, other: &DetectLabelsImageForeground) -> bool
fn eq(&self, other: &DetectLabelsImageForeground) -> bool
self and other values to be equal, and is used
by ==.