#[non_exhaustive]pub struct MigratableResource {
pub last_migrate_time: Option<Timestamp>,
pub last_update_time: Option<Timestamp>,
pub resource: Option<Resource>,
/* private fields */
}Expand description
Represents one resource that exists in automl.googleapis.com, datalabeling.googleapis.com or ml.googleapis.com.
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.last_migrate_time: Option<Timestamp>Output only. Timestamp when the last migration attempt on this MigratableResource started. Will not be set if there’s no migration attempt on this MigratableResource.
last_update_time: Option<Timestamp>Output only. Timestamp when this MigratableResource was last updated.
resource: Option<Resource>Implementations§
Source§impl MigratableResource
impl MigratableResource
pub fn new() -> Self
Sourcepub fn set_last_migrate_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_last_migrate_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of last_migrate_time.
Sourcepub fn set_last_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_last_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of last_update_time.
Sourcepub fn set_resource<T: Into<Option<Resource>>>(self, v: T) -> Self
pub fn set_resource<T: Into<Option<Resource>>>(self, v: T) -> Self
Sets the value of resource.
Note that all the setters affecting resource are mutually
exclusive.
Sourcepub fn ml_engine_model_version(&self) -> Option<&Box<MlEngineModelVersion>>
pub fn ml_engine_model_version(&self) -> Option<&Box<MlEngineModelVersion>>
The value of resource
if it holds a MlEngineModelVersion, None if the field is not set or
holds a different branch.
Sourcepub fn set_ml_engine_model_version<T: Into<Box<MlEngineModelVersion>>>(
self,
v: T,
) -> Self
pub fn set_ml_engine_model_version<T: Into<Box<MlEngineModelVersion>>>( self, v: T, ) -> Self
Sets the value of resource
to hold a MlEngineModelVersion.
Note that all the setters affecting resource are
mutually exclusive.
Sourcepub fn automl_model(&self) -> Option<&Box<AutomlModel>>
pub fn automl_model(&self) -> Option<&Box<AutomlModel>>
The value of resource
if it holds a AutomlModel, None if the field is not set or
holds a different branch.
Sourcepub fn set_automl_model<T: Into<Box<AutomlModel>>>(self, v: T) -> Self
pub fn set_automl_model<T: Into<Box<AutomlModel>>>(self, v: T) -> Self
Sets the value of resource
to hold a AutomlModel.
Note that all the setters affecting resource are
mutually exclusive.
Sourcepub fn automl_dataset(&self) -> Option<&Box<AutomlDataset>>
pub fn automl_dataset(&self) -> Option<&Box<AutomlDataset>>
The value of resource
if it holds a AutomlDataset, None if the field is not set or
holds a different branch.
Sourcepub fn set_automl_dataset<T: Into<Box<AutomlDataset>>>(self, v: T) -> Self
pub fn set_automl_dataset<T: Into<Box<AutomlDataset>>>(self, v: T) -> Self
Sets the value of resource
to hold a AutomlDataset.
Note that all the setters affecting resource are
mutually exclusive.
Sourcepub fn data_labeling_dataset(&self) -> Option<&Box<DataLabelingDataset>>
pub fn data_labeling_dataset(&self) -> Option<&Box<DataLabelingDataset>>
The value of resource
if it holds a DataLabelingDataset, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_labeling_dataset<T: Into<Box<DataLabelingDataset>>>(
self,
v: T,
) -> Self
pub fn set_data_labeling_dataset<T: Into<Box<DataLabelingDataset>>>( self, v: T, ) -> Self
Sets the value of resource
to hold a DataLabelingDataset.
Note that all the setters affecting resource are
mutually exclusive.
Trait Implementations§
Source§impl Clone for MigratableResource
impl Clone for MigratableResource
Source§fn clone(&self) -> MigratableResource
fn clone(&self) -> MigratableResource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more