#[non_exhaustive]pub struct PredictResponse {
pub predictions: Vec<Value>,
pub deployed_model_id: String,
pub model: String,
pub model_version_id: String,
pub model_display_name: String,
pub metadata: Option<Value>,
/* private fields */
}Expand description
Response message for PredictionService.Predict.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.predictions: Vec<Value>The predictions that are the output of the predictions call. The schema of any single prediction may be specified via Endpoint’s DeployedModels’ Model’s PredictSchemata’s prediction_schema_uri.
deployed_model_id: StringID of the Endpoint’s DeployedModel that served this prediction.
model: StringOutput only. The resource name of the Model which is deployed as the DeployedModel that this prediction hits.
model_version_id: StringOutput only. The version ID of the Model which is deployed as the DeployedModel that this prediction hits.
model_display_name: StringOutput only. The display name of the Model which is deployed as the DeployedModel that this prediction hits.
metadata: Option<Value>Output only. Request-level metadata returned by the model. The metadata type will be dependent upon the model implementation.
Implementations§
Source§impl PredictResponse
impl PredictResponse
pub fn new() -> Self
Sourcepub fn set_predictions<T, V>(self, v: T) -> Self
pub fn set_predictions<T, V>(self, v: T) -> Self
Sets the value of predictions.
Sourcepub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
Sets the value of deployed_model_id.
Sourcepub fn set_model_version_id<T: Into<String>>(self, v: T) -> Self
pub fn set_model_version_id<T: Into<String>>(self, v: T) -> Self
Sets the value of model_version_id.
Sourcepub fn set_model_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_model_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of model_display_name.
Trait Implementations§
Source§impl Clone for PredictResponse
impl Clone for PredictResponse
Source§fn clone(&self) -> PredictResponse
fn clone(&self) -> PredictResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more