#[non_exhaustive]pub struct DocumentClassificationConfigBuilder { /* private fields */ }Expand description
A builder for DocumentClassificationConfig.
Implementations§
source§impl DocumentClassificationConfigBuilder
impl DocumentClassificationConfigBuilder
sourcepub fn mode(self, input: DocumentClassifierMode) -> Self
pub fn mode(self, input: DocumentClassifierMode) -> Self
Classification mode indicates whether the documents are MULTI_CLASS or MULTI_LABEL.
sourcepub fn set_mode(self, input: Option<DocumentClassifierMode>) -> Self
pub fn set_mode(self, input: Option<DocumentClassifierMode>) -> Self
Classification mode indicates whether the documents are MULTI_CLASS or MULTI_LABEL.
sourcepub fn labels(self, input: impl Into<String>) -> Self
pub fn labels(self, input: impl Into<String>) -> Self
Appends an item to labels.
To override the contents of this collection use set_labels.
One or more labels to associate with the custom classifier.
sourcepub fn set_labels(self, input: Option<Vec<String>>) -> Self
pub fn set_labels(self, input: Option<Vec<String>>) -> Self
One or more labels to associate with the custom classifier.
sourcepub fn build(self) -> DocumentClassificationConfig
pub fn build(self) -> DocumentClassificationConfig
Consumes the builder and constructs a DocumentClassificationConfig.
Trait Implementations§
source§impl Clone for DocumentClassificationConfigBuilder
impl Clone for DocumentClassificationConfigBuilder
source§fn clone(&self) -> DocumentClassificationConfigBuilder
fn clone(&self) -> DocumentClassificationConfigBuilder
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 DocumentClassificationConfigBuilder
impl Default for DocumentClassificationConfigBuilder
source§fn default() -> DocumentClassificationConfigBuilder
fn default() -> DocumentClassificationConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<DocumentClassificationConfigBuilder> for DocumentClassificationConfigBuilder
impl PartialEq<DocumentClassificationConfigBuilder> for DocumentClassificationConfigBuilder
source§fn eq(&self, other: &DocumentClassificationConfigBuilder) -> bool
fn eq(&self, other: &DocumentClassificationConfigBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.