#[non_exhaustive]pub struct GeneralLabelsSettingsBuilder { /* private fields */ }Expand description
A builder for GeneralLabelsSettings.
Implementations§
source§impl GeneralLabelsSettingsBuilder
impl GeneralLabelsSettingsBuilder
sourcepub fn label_inclusion_filters(self, input: impl Into<String>) -> Self
pub fn label_inclusion_filters(self, input: impl Into<String>) -> Self
Appends an item to label_inclusion_filters.
To override the contents of this collection use set_label_inclusion_filters.
The labels that should be included in the return from DetectLabels.
sourcepub fn set_label_inclusion_filters(self, input: Option<Vec<String>>) -> Self
pub fn set_label_inclusion_filters(self, input: Option<Vec<String>>) -> Self
The labels that should be included in the return from DetectLabels.
sourcepub fn get_label_inclusion_filters(&self) -> &Option<Vec<String>>
pub fn get_label_inclusion_filters(&self) -> &Option<Vec<String>>
The labels that should be included in the return from DetectLabels.
sourcepub fn label_exclusion_filters(self, input: impl Into<String>) -> Self
pub fn label_exclusion_filters(self, input: impl Into<String>) -> Self
Appends an item to label_exclusion_filters.
To override the contents of this collection use set_label_exclusion_filters.
The labels that should be excluded from the return from DetectLabels.
sourcepub fn set_label_exclusion_filters(self, input: Option<Vec<String>>) -> Self
pub fn set_label_exclusion_filters(self, input: Option<Vec<String>>) -> Self
The labels that should be excluded from the return from DetectLabels.
sourcepub fn get_label_exclusion_filters(&self) -> &Option<Vec<String>>
pub fn get_label_exclusion_filters(&self) -> &Option<Vec<String>>
The labels that should be excluded from the return from DetectLabels.
sourcepub fn label_category_inclusion_filters(self, input: impl Into<String>) -> Self
pub fn label_category_inclusion_filters(self, input: impl Into<String>) -> Self
Appends an item to label_category_inclusion_filters.
To override the contents of this collection use set_label_category_inclusion_filters.
The label categories that should be included in the return from DetectLabels.
sourcepub fn set_label_category_inclusion_filters(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_label_category_inclusion_filters( self, input: Option<Vec<String>> ) -> Self
The label categories that should be included in the return from DetectLabels.
sourcepub fn get_label_category_inclusion_filters(&self) -> &Option<Vec<String>>
pub fn get_label_category_inclusion_filters(&self) -> &Option<Vec<String>>
The label categories that should be included in the return from DetectLabels.
sourcepub fn label_category_exclusion_filters(self, input: impl Into<String>) -> Self
pub fn label_category_exclusion_filters(self, input: impl Into<String>) -> Self
Appends an item to label_category_exclusion_filters.
To override the contents of this collection use set_label_category_exclusion_filters.
The label categories that should be excluded from the return from DetectLabels.
sourcepub fn set_label_category_exclusion_filters(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_label_category_exclusion_filters( self, input: Option<Vec<String>> ) -> Self
The label categories that should be excluded from the return from DetectLabels.
sourcepub fn get_label_category_exclusion_filters(&self) -> &Option<Vec<String>>
pub fn get_label_category_exclusion_filters(&self) -> &Option<Vec<String>>
The label categories that should be excluded from the return from DetectLabels.
sourcepub fn build(self) -> GeneralLabelsSettings
pub fn build(self) -> GeneralLabelsSettings
Consumes the builder and constructs a GeneralLabelsSettings.
Trait Implementations§
source§impl Clone for GeneralLabelsSettingsBuilder
impl Clone for GeneralLabelsSettingsBuilder
source§fn clone(&self) -> GeneralLabelsSettingsBuilder
fn clone(&self) -> GeneralLabelsSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GeneralLabelsSettingsBuilder
impl Debug for GeneralLabelsSettingsBuilder
source§impl Default for GeneralLabelsSettingsBuilder
impl Default for GeneralLabelsSettingsBuilder
source§fn default() -> GeneralLabelsSettingsBuilder
fn default() -> GeneralLabelsSettingsBuilder
source§impl PartialEq for GeneralLabelsSettingsBuilder
impl PartialEq for GeneralLabelsSettingsBuilder
source§fn eq(&self, other: &GeneralLabelsSettingsBuilder) -> bool
fn eq(&self, other: &GeneralLabelsSettingsBuilder) -> bool
self and other values to be equal, and is used
by ==.