pub struct MlPutTrainedModel<'a, 'b, B> { /* private fields */ }
Expand description
Builder for the Ml Put Trained Model API
Creates an inference trained model.
Implementations§
Source§impl<'a, 'b, B> MlPutTrainedModel<'a, 'b, B>where
B: Body,
impl<'a, 'b, B> MlPutTrainedModel<'a, 'b, B>where
B: Body,
Sourcepub fn new(transport: &'a Transport, parts: MlPutTrainedModelParts<'b>) -> Self
pub fn new(transport: &'a Transport, parts: MlPutTrainedModelParts<'b>) -> Self
Creates a new instance of MlPutTrainedModel with the specified API parts
Sourcepub fn body<T>(self, body: T) -> MlPutTrainedModel<'a, 'b, JsonBody<T>>where
T: Serialize,
pub fn body<T>(self, body: T) -> MlPutTrainedModel<'a, 'b, JsonBody<T>>where
T: Serialize,
The body for the API call
Sourcepub fn defer_definition_decompression(
self,
defer_definition_decompression: bool,
) -> Self
pub fn defer_definition_decompression( self, defer_definition_decompression: bool, ) -> Self
If set to true
and a compressed_definition
is provided, the request defers definition decompression and skips relevant validations.
Sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
Sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
Sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
Sourcepub fn source(self, source: &'b str) -> Self
pub fn source(self, source: &'b str) -> Self
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
Sourcepub fn wait_for_completion(self, wait_for_completion: bool) -> Self
pub fn wait_for_completion(self, wait_for_completion: bool) -> Self
Whether to wait for all child operations(e.g. model download) to complete, before returning or not. Default to false
Trait Implementations§
Source§impl<'a, 'b, B: Clone> Clone for MlPutTrainedModel<'a, 'b, B>
impl<'a, 'b, B: Clone> Clone for MlPutTrainedModel<'a, 'b, B>
Source§fn clone(&self) -> MlPutTrainedModel<'a, 'b, B>
fn clone(&self) -> MlPutTrainedModel<'a, 'b, B>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more