#[non_exhaustive]pub struct OutputConfig {
pub export_format_id: String,
pub artifact_destination: Option<GcsDestination>,
pub image_destination: Option<ContainerRegistryDestination>,
/* private fields */
}Expand description
Output configuration for the Model export.
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.export_format_id: StringThe ID of the format in which the Model must be exported. Each Model lists the export formats it supports. If no value is provided here, then the first from the list of the Model’s supported formats is used by default.
artifact_destination: Option<GcsDestination>The Cloud Storage location where the Model artifact is to be
written to. Under the directory given as the destination a new one with
name “model-export-<model-display-name>-<timestamp-of-export-call>”,
where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
will be created. Inside, the Model and any of its supporting files
will be written.
This field should only be set when the exportableContent field of the
[Model.supported_export_formats] object contains ARTIFACT.
image_destination: Option<ContainerRegistryDestination>The Google Container Registry or Artifact Registry uri where the
Model container image will be copied to.
This field should only be set when the exportableContent field of the
[Model.supported_export_formats] object contains IMAGE.
Implementations§
Source§impl OutputConfig
impl OutputConfig
pub fn new() -> Self
Sourcepub fn set_export_format_id<T: Into<String>>(self, v: T) -> Self
pub fn set_export_format_id<T: Into<String>>(self, v: T) -> Self
Sets the value of export_format_id.
Sourcepub fn set_artifact_destination<T: Into<Option<GcsDestination>>>(
self,
v: T,
) -> Self
pub fn set_artifact_destination<T: Into<Option<GcsDestination>>>( self, v: T, ) -> Self
Sets the value of artifact_destination.
Sourcepub fn set_image_destination<T: Into<Option<ContainerRegistryDestination>>>(
self,
v: T,
) -> Self
pub fn set_image_destination<T: Into<Option<ContainerRegistryDestination>>>( self, v: T, ) -> Self
Sets the value of image_destination.
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