#[non_exhaustive]pub struct DetectLabelsImagePropertiesBuilder { /* private fields */ }Expand description
A builder for DetectLabelsImageProperties.
Implementations§
source§impl DetectLabelsImagePropertiesBuilder
impl DetectLabelsImagePropertiesBuilder
sourcepub fn quality(self, input: DetectLabelsImageQuality) -> Self
pub fn quality(self, input: DetectLabelsImageQuality) -> Self
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast. The higher the value the greater the brightness, sharpness, and contrast respectively.
sourcepub fn set_quality(self, input: Option<DetectLabelsImageQuality>) -> Self
pub fn set_quality(self, input: Option<DetectLabelsImageQuality>) -> Self
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast. The higher the value the greater the brightness, sharpness, and contrast respectively.
sourcepub fn get_quality(&self) -> &Option<DetectLabelsImageQuality>
pub fn get_quality(&self) -> &Option<DetectLabelsImageQuality>
Information about the quality of the image foreground as defined by brightness, sharpness, and contrast. The higher the value the greater the brightness, sharpness, and contrast respectively.
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.
Information about the dominant colors found in an image, described 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
Information about the dominant colors found in an image, described 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>>
Information about the dominant colors found in an image, described with RGB values, CSS color name, simplified color name, and PixelPercentage (the percentage of image pixels that have a particular color).
sourcepub fn foreground(self, input: DetectLabelsImageForeground) -> Self
pub fn foreground(self, input: DetectLabelsImageForeground) -> Self
Information about the properties of an image’s foreground, including the foreground’s quality and dominant colors, including the quality and dominant colors of the image.
sourcepub fn set_foreground(self, input: Option<DetectLabelsImageForeground>) -> Self
pub fn set_foreground(self, input: Option<DetectLabelsImageForeground>) -> Self
Information about the properties of an image’s foreground, including the foreground’s quality and dominant colors, including the quality and dominant colors of the image.
sourcepub fn get_foreground(&self) -> &Option<DetectLabelsImageForeground>
pub fn get_foreground(&self) -> &Option<DetectLabelsImageForeground>
Information about the properties of an image’s foreground, including the foreground’s quality and dominant colors, including the quality and dominant colors of the image.
sourcepub fn background(self, input: DetectLabelsImageBackground) -> Self
pub fn background(self, input: DetectLabelsImageBackground) -> Self
Information about the properties of an image’s background, including the background’s quality and dominant colors, including the quality and dominant colors of the image.
sourcepub fn set_background(self, input: Option<DetectLabelsImageBackground>) -> Self
pub fn set_background(self, input: Option<DetectLabelsImageBackground>) -> Self
Information about the properties of an image’s background, including the background’s quality and dominant colors, including the quality and dominant colors of the image.
sourcepub fn get_background(&self) -> &Option<DetectLabelsImageBackground>
pub fn get_background(&self) -> &Option<DetectLabelsImageBackground>
Information about the properties of an image’s background, including the background’s quality and dominant colors, including the quality and dominant colors of the image.
sourcepub fn build(self) -> DetectLabelsImageProperties
pub fn build(self) -> DetectLabelsImageProperties
Consumes the builder and constructs a DetectLabelsImageProperties.
Trait Implementations§
source§impl Clone for DetectLabelsImagePropertiesBuilder
impl Clone for DetectLabelsImagePropertiesBuilder
source§fn clone(&self) -> DetectLabelsImagePropertiesBuilder
fn clone(&self) -> DetectLabelsImagePropertiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DetectLabelsImagePropertiesBuilder
impl Default for DetectLabelsImagePropertiesBuilder
source§fn default() -> DetectLabelsImagePropertiesBuilder
fn default() -> DetectLabelsImagePropertiesBuilder
source§impl PartialEq for DetectLabelsImagePropertiesBuilder
impl PartialEq for DetectLabelsImagePropertiesBuilder
source§fn eq(&self, other: &DetectLabelsImagePropertiesBuilder) -> bool
fn eq(&self, other: &DetectLabelsImagePropertiesBuilder) -> bool
self and other values to be equal, and is used
by ==.