#[non_exhaustive]pub struct RawPredictRequest {
pub endpoint: String,
pub http_body: Option<HttpBody>,
/* private fields */
}Expand description
Request message for PredictionService.RawPredict.
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.endpoint: StringRequired. The name of the Endpoint requested to serve the prediction.
Format:
projects/{project}/locations/{location}/endpoints/{endpoint}
http_body: Option<HttpBody>The prediction input. Supports HTTP headers and arbitrary data payload.
A DeployedModel may have an upper limit on the number of instances it supports per request. When this limit it is exceeded for an AutoML model, the RawPredict method returns an error. When this limit is exceeded for a custom-trained model, the behavior varies depending on the model.
You can specify the schema for each instance in the
predict_schemata.instance_schema_uri
field when you create a Model. This
schema applies when you deploy the Model as a DeployedModel to an
Endpoint and use the RawPredict
method.
Implementations§
Trait Implementations§
Source§impl Clone for RawPredictRequest
impl Clone for RawPredictRequest
Source§fn clone(&self) -> RawPredictRequest
fn clone(&self) -> RawPredictRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more