#[non_exhaustive]pub struct TrainingDataSchemaBuilder { /* private fields */ }
Expand description
A builder for TrainingDataSchema
.
Implementations§
source§impl TrainingDataSchemaBuilder
impl TrainingDataSchemaBuilder
sourcepub fn model_variables(self, input: impl Into<String>) -> Self
pub fn model_variables(self, input: impl Into<String>) -> Self
Appends an item to model_variables
.
To override the contents of this collection use set_model_variables
.
The training data schema variables.
sourcepub fn set_model_variables(self, input: Option<Vec<String>>) -> Self
pub fn set_model_variables(self, input: Option<Vec<String>>) -> Self
The training data schema variables.
sourcepub fn get_model_variables(&self) -> &Option<Vec<String>>
pub fn get_model_variables(&self) -> &Option<Vec<String>>
The training data schema variables.
sourcepub fn label_schema(self, input: LabelSchema) -> Self
pub fn label_schema(self, input: LabelSchema) -> Self
The label schema.
sourcepub fn set_label_schema(self, input: Option<LabelSchema>) -> Self
pub fn set_label_schema(self, input: Option<LabelSchema>) -> Self
The label schema.
sourcepub fn get_label_schema(&self) -> &Option<LabelSchema>
pub fn get_label_schema(&self) -> &Option<LabelSchema>
The label schema.
sourcepub fn build(self) -> Result<TrainingDataSchema, BuildError>
pub fn build(self) -> Result<TrainingDataSchema, BuildError>
Consumes the builder and constructs a TrainingDataSchema
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TrainingDataSchemaBuilder
impl Clone for TrainingDataSchemaBuilder
source§fn clone(&self) -> TrainingDataSchemaBuilder
fn clone(&self) -> TrainingDataSchemaBuilder
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 Debug for TrainingDataSchemaBuilder
impl Debug for TrainingDataSchemaBuilder
source§impl Default for TrainingDataSchemaBuilder
impl Default for TrainingDataSchemaBuilder
source§fn default() -> TrainingDataSchemaBuilder
fn default() -> TrainingDataSchemaBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TrainingDataSchemaBuilder
impl PartialEq for TrainingDataSchemaBuilder
source§fn eq(&self, other: &TrainingDataSchemaBuilder) -> bool
fn eq(&self, other: &TrainingDataSchemaBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrainingDataSchemaBuilder
Auto Trait Implementations§
impl Freeze for TrainingDataSchemaBuilder
impl RefUnwindSafe for TrainingDataSchemaBuilder
impl Send for TrainingDataSchemaBuilder
impl Sync for TrainingDataSchemaBuilder
impl Unpin for TrainingDataSchemaBuilder
impl UnwindSafe for TrainingDataSchemaBuilder
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>
Creates a shared type from an unshared type.