#[non_exhaustive]pub struct LabelDetectionSettingsBuilder { /* private fields */ }Expand description
A builder for LabelDetectionSettings.
Implementations§
source§impl LabelDetectionSettingsBuilder
impl LabelDetectionSettingsBuilder
sourcepub fn general_labels(self, input: GeneralLabelsSettings) -> Self
pub fn general_labels(self, input: GeneralLabelsSettings) -> Self
Contains filters for the object labels returned by DetectLabels. Filters can be inclusive, exclusive, or a combination of both and can be applied to individual labels or entire label categories. To see a list of label categories, see Detecting Labels.
sourcepub fn set_general_labels(self, input: Option<GeneralLabelsSettings>) -> Self
pub fn set_general_labels(self, input: Option<GeneralLabelsSettings>) -> Self
Contains filters for the object labels returned by DetectLabels. Filters can be inclusive, exclusive, or a combination of both and can be applied to individual labels or entire label categories. To see a list of label categories, see Detecting Labels.
sourcepub fn get_general_labels(&self) -> &Option<GeneralLabelsSettings>
pub fn get_general_labels(&self) -> &Option<GeneralLabelsSettings>
Contains filters for the object labels returned by DetectLabels. Filters can be inclusive, exclusive, or a combination of both and can be applied to individual labels or entire label categories. To see a list of label categories, see Detecting Labels.
sourcepub fn build(self) -> LabelDetectionSettings
pub fn build(self) -> LabelDetectionSettings
Consumes the builder and constructs a LabelDetectionSettings.
Trait Implementations§
source§impl Clone for LabelDetectionSettingsBuilder
impl Clone for LabelDetectionSettingsBuilder
source§fn clone(&self) -> LabelDetectionSettingsBuilder
fn clone(&self) -> LabelDetectionSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for LabelDetectionSettingsBuilder
impl Default for LabelDetectionSettingsBuilder
source§fn default() -> LabelDetectionSettingsBuilder
fn default() -> LabelDetectionSettingsBuilder
source§impl PartialEq for LabelDetectionSettingsBuilder
impl PartialEq for LabelDetectionSettingsBuilder
source§fn eq(&self, other: &LabelDetectionSettingsBuilder) -> bool
fn eq(&self, other: &LabelDetectionSettingsBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for LabelDetectionSettingsBuilder
Auto Trait Implementations§
impl Freeze for LabelDetectionSettingsBuilder
impl RefUnwindSafe for LabelDetectionSettingsBuilder
impl Send for LabelDetectionSettingsBuilder
impl Sync for LabelDetectionSettingsBuilder
impl Unpin for LabelDetectionSettingsBuilder
impl UnwindSafe for LabelDetectionSettingsBuilder
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