#[non_exhaustive]pub struct DetectLabelsImageBackgroundBuilder { /* private fields */ }Expand description
A builder for DetectLabelsImageBackground.
Implementations§
source§impl DetectLabelsImageBackgroundBuilder
impl DetectLabelsImageBackgroundBuilder
sourcepub fn quality(self, input: DetectLabelsImageQuality) -> Self
pub fn quality(self, input: DetectLabelsImageQuality) -> Self
The quality of the image background as defined by brightness and sharpness.
sourcepub fn set_quality(self, input: Option<DetectLabelsImageQuality>) -> Self
pub fn set_quality(self, input: Option<DetectLabelsImageQuality>) -> Self
The quality of the image background as defined by brightness and sharpness.
sourcepub fn get_quality(&self) -> &Option<DetectLabelsImageQuality>
pub fn get_quality(&self) -> &Option<DetectLabelsImageQuality>
The quality of the image background as defined by brightness and sharpness.
sourcepub fn dominant_colors(self, input: DominantColor) -> Self
pub fn dominant_colors(self, input: DominantColor) -> Self
Appends an item to dominant_colors.
To override the contents of this collection use set_dominant_colors.
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).
sourcepub fn set_dominant_colors(self, input: Option<Vec<DominantColor>>) -> Self
pub fn set_dominant_colors(self, input: Option<Vec<DominantColor>>) -> Self
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).
sourcepub fn get_dominant_colors(&self) -> &Option<Vec<DominantColor>>
pub fn get_dominant_colors(&self) -> &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).
sourcepub fn build(self) -> DetectLabelsImageBackground
pub fn build(self) -> DetectLabelsImageBackground
Consumes the builder and constructs a DetectLabelsImageBackground.
Trait Implementations§
source§impl Clone for DetectLabelsImageBackgroundBuilder
impl Clone for DetectLabelsImageBackgroundBuilder
source§fn clone(&self) -> DetectLabelsImageBackgroundBuilder
fn clone(&self) -> DetectLabelsImageBackgroundBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DetectLabelsImageBackgroundBuilder
impl Default for DetectLabelsImageBackgroundBuilder
source§fn default() -> DetectLabelsImageBackgroundBuilder
fn default() -> DetectLabelsImageBackgroundBuilder
source§impl PartialEq for DetectLabelsImageBackgroundBuilder
impl PartialEq for DetectLabelsImageBackgroundBuilder
source§fn eq(&self, other: &DetectLabelsImageBackgroundBuilder) -> bool
fn eq(&self, other: &DetectLabelsImageBackgroundBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DetectLabelsImageBackgroundBuilder
Auto Trait Implementations§
impl Freeze for DetectLabelsImageBackgroundBuilder
impl RefUnwindSafe for DetectLabelsImageBackgroundBuilder
impl Send for DetectLabelsImageBackgroundBuilder
impl Sync for DetectLabelsImageBackgroundBuilder
impl Unpin for DetectLabelsImageBackgroundBuilder
impl UnwindSafe for DetectLabelsImageBackgroundBuilder
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