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