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