#[non_exhaustive]pub struct MigrateResourceResponse {
pub migratable_resource: Option<MigratableResource>,
pub migrated_resource: Option<MigratedResource>,
/* private fields */
}Expand description
Describes a successfully migrated resource.
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.migratable_resource: Option<MigratableResource>Before migration, the identifier in ml.googleapis.com, automl.googleapis.com or datalabeling.googleapis.com.
migrated_resource: Option<MigratedResource>After migration, the resource name in Vertex AI.
Implementations§
Source§impl MigrateResourceResponse
impl MigrateResourceResponse
pub fn new() -> Self
Sourcepub fn set_migratable_resource<T: Into<Option<MigratableResource>>>(
self,
v: T,
) -> Self
pub fn set_migratable_resource<T: Into<Option<MigratableResource>>>( self, v: T, ) -> Self
Sets the value of migratable_resource.
Sourcepub fn set_migrated_resource<T: Into<Option<MigratedResource>>>(
self,
v: T,
) -> Self
pub fn set_migrated_resource<T: Into<Option<MigratedResource>>>( self, v: T, ) -> Self
Sets the value of migrated_resource.
Note that all the setters affecting migrated_resource are mutually
exclusive.
Sourcepub fn dataset(&self) -> Option<&String>
pub fn dataset(&self) -> Option<&String>
The value of migrated_resource
if it holds a Dataset, None if the field is not set or
holds a different branch.
Sourcepub fn set_dataset<T: Into<String>>(self, v: T) -> Self
pub fn set_dataset<T: Into<String>>(self, v: T) -> Self
Sets the value of migrated_resource
to hold a Dataset.
Note that all the setters affecting migrated_resource are
mutually exclusive.
Sourcepub fn model(&self) -> Option<&String>
pub fn model(&self) -> Option<&String>
The value of migrated_resource
if it holds a Model, None if the field is not set or
holds a different branch.
Sourcepub fn set_model<T: Into<String>>(self, v: T) -> Self
pub fn set_model<T: Into<String>>(self, v: T) -> Self
Sets the value of migrated_resource
to hold a Model.
Note that all the setters affecting migrated_resource are
mutually exclusive.
Trait Implementations§
Source§impl Clone for MigrateResourceResponse
impl Clone for MigrateResourceResponse
Source§fn clone(&self) -> MigrateResourceResponse
fn clone(&self) -> MigrateResourceResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more