#[non_exhaustive]pub struct MigrateMlEngineModelVersionConfig {
pub endpoint: String,
pub model_version: String,
pub model_display_name: String,
/* private fields */
}Expand description
Config for migrating version in ml.googleapis.com to Vertex AI’s Model.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint: StringRequired. The ml.googleapis.com endpoint that this model version should be migrated from. Example values:
-
ml.googleapis.com
-
us-centrall-ml.googleapis.com
-
europe-west4-ml.googleapis.com
-
asia-east1-ml.googleapis.com
model_version: StringRequired. Full resource name of ml engine model version.
Format: projects/{project}/models/{model}/versions/{version}.
model_display_name: StringRequired. Display name of the model in Vertex AI. System will pick a display name if unspecified.
Implementations§
Source§impl MigrateMlEngineModelVersionConfig
impl MigrateMlEngineModelVersionConfig
pub fn new() -> Self
Sourcepub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of endpoint.
Sourcepub fn set_model_version<T: Into<String>>(self, v: T) -> Self
pub fn set_model_version<T: Into<String>>(self, v: T) -> Self
Sets the value of model_version.
Sourcepub fn set_model_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_model_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of model_display_name.
Trait Implementations§
Source§impl Clone for MigrateMlEngineModelVersionConfig
impl Clone for MigrateMlEngineModelVersionConfig
Source§fn clone(&self) -> MigrateMlEngineModelVersionConfig
fn clone(&self) -> MigrateMlEngineModelVersionConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MigrateMlEngineModelVersionConfig
impl Default for MigrateMlEngineModelVersionConfig
Source§fn default() -> MigrateMlEngineModelVersionConfig
fn default() -> MigrateMlEngineModelVersionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MigrateMlEngineModelVersionConfig
impl<'de> Deserialize<'de> for MigrateMlEngineModelVersionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MigrateMlEngineModelVersionConfig
impl PartialEq for MigrateMlEngineModelVersionConfig
Source§fn eq(&self, other: &MigrateMlEngineModelVersionConfig) -> bool
fn eq(&self, other: &MigrateMlEngineModelVersionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MigrateMlEngineModelVersionConfig
Auto Trait Implementations§
impl Freeze for MigrateMlEngineModelVersionConfig
impl RefUnwindSafe for MigrateMlEngineModelVersionConfig
impl Send for MigrateMlEngineModelVersionConfig
impl Sync for MigrateMlEngineModelVersionConfig
impl Unpin for MigrateMlEngineModelVersionConfig
impl UnwindSafe for MigrateMlEngineModelVersionConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more