#[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 ==.