#[non_exhaustive]pub struct OutputConfig {
pub predictions_format: String,
pub destination: Option<Destination>,
/* private fields */
}job-service only.Expand description
Configures the output of BatchPredictionJob. See Model.supported_output_storage_formats for supported output formats, and how predictions are expressed via any of them.
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_format: StringRequired. The format in which Vertex AI gives the predictions, must be one of the Model’s supported_output_storage_formats.
destination: Option<Destination>Required. The destination of the output.
Implementations§
Source§impl OutputConfig
impl OutputConfig
pub fn new() -> Self
Sourcepub fn set_predictions_format<T: Into<String>>(self, v: T) -> Self
pub fn set_predictions_format<T: Into<String>>(self, v: T) -> Self
Sets the value of predictions_format.
Sourcepub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
pub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
Sets the value of destination.
Note that all the setters affecting destination are mutually
exclusive.
Sourcepub fn gcs_destination(&self) -> Option<&Box<GcsDestination>>
pub fn gcs_destination(&self) -> Option<&Box<GcsDestination>>
The value of destination
if it holds a GcsDestination, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_destination<T: Into<Box<GcsDestination>>>(self, v: T) -> Self
pub fn set_gcs_destination<T: Into<Box<GcsDestination>>>(self, v: T) -> Self
Sets the value of destination
to hold a GcsDestination.
Note that all the setters affecting destination are
mutually exclusive.
Sourcepub fn bigquery_destination(&self) -> Option<&Box<BigQueryDestination>>
pub fn bigquery_destination(&self) -> Option<&Box<BigQueryDestination>>
The value of destination
if it holds a BigqueryDestination, None if the field is not set or
holds a different branch.
Sourcepub fn set_bigquery_destination<T: Into<Box<BigQueryDestination>>>(
self,
v: T,
) -> Self
pub fn set_bigquery_destination<T: Into<Box<BigQueryDestination>>>( self, v: T, ) -> Self
Sets the value of destination
to hold a BigqueryDestination.
Note that all the setters affecting destination are
mutually exclusive.
Trait Implementations§
Source§impl Clone for OutputConfig
impl Clone for OutputConfig
Source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more