#[non_exhaustive]pub struct PredictInputBuilder { /* private fields */ }
Expand description
A builder for PredictInput
.
Implementations§
source§impl PredictInputBuilder
impl PredictInputBuilder
sourcepub fn ml_model_id(self, input: impl Into<String>) -> Self
pub fn ml_model_id(self, input: impl Into<String>) -> Self
A unique identifier of the MLModel
.
sourcepub fn set_ml_model_id(self, input: Option<String>) -> Self
pub fn set_ml_model_id(self, input: Option<String>) -> Self
A unique identifier of the MLModel
.
sourcepub fn record(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn record(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to record
.
To override the contents of this collection use set_record
.
A map of variable name-value pairs that represent an observation.
sourcepub fn set_record(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_record(self, input: Option<HashMap<String, String>>) -> Self
A map of variable name-value pairs that represent an observation.
pub fn predict_endpoint(self, input: impl Into<String>) -> Self
pub fn set_predict_endpoint(self, input: Option<String>) -> Self
sourcepub fn build(self) -> Result<PredictInput, BuildError>
pub fn build(self) -> Result<PredictInput, BuildError>
Consumes the builder and constructs a PredictInput
.
Trait Implementations§
source§impl Clone for PredictInputBuilder
impl Clone for PredictInputBuilder
source§fn clone(&self) -> PredictInputBuilder
fn clone(&self) -> PredictInputBuilder
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 PredictInputBuilder
impl Debug for PredictInputBuilder
source§impl Default for PredictInputBuilder
impl Default for PredictInputBuilder
source§fn default() -> PredictInputBuilder
fn default() -> PredictInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<PredictInputBuilder> for PredictInputBuilder
impl PartialEq<PredictInputBuilder> for PredictInputBuilder
source§fn eq(&self, other: &PredictInputBuilder) -> bool
fn eq(&self, other: &PredictInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredictInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PredictInputBuilder
impl Send for PredictInputBuilder
impl Sync for PredictInputBuilder
impl Unpin for PredictInputBuilder
impl UnwindSafe for PredictInputBuilder
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