#[non_exhaustive]pub struct DetectLabelsImageBackground {
pub quality: Option<DetectLabelsImageQuality>,
pub dominant_colors: Option<Vec<DominantColor>>,
}Expand description
The background 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 background as defined by brightness and sharpness.
dominant_colors: Option<Vec<DominantColor>>The dominant colors found in the background 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 DetectLabelsImageBackground
impl DetectLabelsImageBackground
sourcepub fn quality(&self) -> Option<&DetectLabelsImageQuality>
pub fn quality(&self) -> Option<&DetectLabelsImageQuality>
The quality of the image background as defined by brightness and sharpness.
sourcepub fn dominant_colors(&self) -> &[DominantColor]
pub fn dominant_colors(&self) -> &[DominantColor]
The dominant colors found in the background 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 DetectLabelsImageBackground
impl DetectLabelsImageBackground
sourcepub fn builder() -> DetectLabelsImageBackgroundBuilder
pub fn builder() -> DetectLabelsImageBackgroundBuilder
Creates a new builder-style object to manufacture DetectLabelsImageBackground.
Trait Implementations§
source§impl Clone for DetectLabelsImageBackground
impl Clone for DetectLabelsImageBackground
source§fn clone(&self) -> DetectLabelsImageBackground
fn clone(&self) -> DetectLabelsImageBackground
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DetectLabelsImageBackground
impl Debug for DetectLabelsImageBackground
source§impl PartialEq for DetectLabelsImageBackground
impl PartialEq for DetectLabelsImageBackground
source§fn eq(&self, other: &DetectLabelsImageBackground) -> bool
fn eq(&self, other: &DetectLabelsImageBackground) -> bool
self and other values to be equal, and is used
by ==.