#[non_exhaustive]pub struct DetectLabelsImageQualityBuilder { /* private fields */ }Expand description
A builder for DetectLabelsImageQuality.
Implementations§
source§impl DetectLabelsImageQualityBuilder
impl DetectLabelsImageQualityBuilder
sourcepub fn brightness(self, input: f32) -> Self
pub fn brightness(self, input: f32) -> Self
The brightness of an image provided for label detection.
sourcepub fn set_brightness(self, input: Option<f32>) -> Self
pub fn set_brightness(self, input: Option<f32>) -> Self
The brightness of an image provided for label detection.
sourcepub fn get_brightness(&self) -> &Option<f32>
pub fn get_brightness(&self) -> &Option<f32>
The brightness of an image provided for label detection.
sourcepub fn sharpness(self, input: f32) -> Self
pub fn sharpness(self, input: f32) -> Self
The sharpness of an image provided for label detection.
sourcepub fn set_sharpness(self, input: Option<f32>) -> Self
pub fn set_sharpness(self, input: Option<f32>) -> Self
The sharpness of an image provided for label detection.
sourcepub fn get_sharpness(&self) -> &Option<f32>
pub fn get_sharpness(&self) -> &Option<f32>
The sharpness of an image provided for label detection.
sourcepub fn contrast(self, input: f32) -> Self
pub fn contrast(self, input: f32) -> Self
The contrast of an image provided for label detection.
sourcepub fn set_contrast(self, input: Option<f32>) -> Self
pub fn set_contrast(self, input: Option<f32>) -> Self
The contrast of an image provided for label detection.
sourcepub fn get_contrast(&self) -> &Option<f32>
pub fn get_contrast(&self) -> &Option<f32>
The contrast of an image provided for label detection.
sourcepub fn build(self) -> DetectLabelsImageQuality
pub fn build(self) -> DetectLabelsImageQuality
Consumes the builder and constructs a DetectLabelsImageQuality.
Trait Implementations§
source§impl Clone for DetectLabelsImageQualityBuilder
impl Clone for DetectLabelsImageQualityBuilder
source§fn clone(&self) -> DetectLabelsImageQualityBuilder
fn clone(&self) -> DetectLabelsImageQualityBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for DetectLabelsImageQualityBuilder
impl Default for DetectLabelsImageQualityBuilder
source§fn default() -> DetectLabelsImageQualityBuilder
fn default() -> DetectLabelsImageQualityBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DetectLabelsImageQualityBuilder
impl PartialEq for DetectLabelsImageQualityBuilder
source§fn eq(&self, other: &DetectLabelsImageQualityBuilder) -> bool
fn eq(&self, other: &DetectLabelsImageQualityBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DetectLabelsImageQualityBuilder
Auto Trait Implementations§
impl Freeze for DetectLabelsImageQualityBuilder
impl RefUnwindSafe for DetectLabelsImageQualityBuilder
impl Send for DetectLabelsImageQualityBuilder
impl Sync for DetectLabelsImageQualityBuilder
impl Unpin for DetectLabelsImageQualityBuilder
impl UnwindSafe for DetectLabelsImageQualityBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.