Struct elasticsearch::ml::MlGetTrainedModels
source · pub struct MlGetTrainedModels<'a, 'b> { /* private fields */ }
Expand description
Builder for the Ml Get Trained Models API
Retrieves configuration information for a trained inference model.
Implementations
sourceimpl<'a, 'b> MlGetTrainedModels<'a, 'b>
impl<'a, 'b> MlGetTrainedModels<'a, 'b>
sourcepub fn new(transport: &'a Transport, parts: MlGetTrainedModelsParts<'b>) -> Self
pub fn new(transport: &'a Transport, parts: MlGetTrainedModelsParts<'b>) -> Self
Creates a new instance of MlGetTrainedModels with the specified API parts
sourcepub fn allow_no_match(self, allow_no_match: bool) -> Self
pub fn allow_no_match(self, allow_no_match: bool) -> Self
Whether to ignore if a wildcard expression matches no trained models. (This includes _all
string or when no trained models have been specified)
sourcepub fn decompress_definition(self, decompress_definition: bool) -> Self
pub fn decompress_definition(self, decompress_definition: bool) -> Self
Should the model definition be decompressed into valid JSON or returned in a custom compressed format. Defaults to true.
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 exclude_generated(self, exclude_generated: bool) -> Self
pub fn exclude_generated(self, exclude_generated: bool) -> Self
Omits fields that are illegal to set on model PUT
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 include(self, include: &'b str) -> Self
pub fn include(self, include: &'b str) -> Self
A comma-separate list of fields to optionally include. Valid options are ‘definition’ and ‘total_feature_importance’. Default is none.
sourcepub fn include_model_definition(self, include_model_definition: bool) -> Self
pub fn include_model_definition(self, include_model_definition: bool) -> Self
Should the full model definition be included in the results. These definitions can be large. So be cautious when including them. Defaults to false.
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.
A comma-separated list of tags that the model must have.
Trait Implementations
sourceimpl<'a, 'b> Clone for MlGetTrainedModels<'a, 'b>
impl<'a, 'b> Clone for MlGetTrainedModels<'a, 'b>
sourcefn clone(&self) -> MlGetTrainedModels<'a, 'b>
fn clone(&self) -> MlGetTrainedModels<'a, 'b>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more