Struct aws_sdk_machinelearning::client::fluent_builders::Predict
source · [−]pub struct Predict<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to Predict
.
Generates a prediction for the observation using the specified ML Model
.
Note: Not all response parameters will be populated. Whether a response parameter is populated depends on the type of model requested.
Implementations
impl<C, M, R> Predict<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> Predict<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<PredictOutput, SdkError<PredictError>> where
R::Policy: SmithyRetryPolicy<PredictInputOperationOutputAlias, PredictOutput, PredictError, PredictInputOperationRetryAlias>,
pub async fn send(self) -> Result<PredictOutput, SdkError<PredictError>> where
R::Policy: SmithyRetryPolicy<PredictInputOperationOutputAlias, PredictOutput, PredictError, PredictInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A unique identifier of the MLModel
.
A unique identifier of the MLModel
.
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.
A map of variable name-value pairs that represent an observation.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Predict<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Predict<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more