#[non_exhaustive]pub struct ModelDeploymentMonitoringObjectiveConfig {
pub deployed_model_id: String,
pub objective_config: Option<ModelMonitoringObjectiveConfig>,
/* private fields */
}Available on crate feature
job-service only.Expand description
ModelDeploymentMonitoringObjectiveConfig contains the pair of deployed_model_id to ModelMonitoringObjectiveConfig.
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.deployed_model_id: StringThe DeployedModel ID of the objective config.
objective_config: Option<ModelMonitoringObjectiveConfig>The objective config of for the modelmonitoring job of this deployed model.
Implementations§
Source§impl ModelDeploymentMonitoringObjectiveConfig
impl ModelDeploymentMonitoringObjectiveConfig
pub fn new() -> Self
Sourcepub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
pub fn set_deployed_model_id<T: Into<String>>(self, v: T) -> Self
Sets the value of deployed_model_id.
§Example
ⓘ
let x = ModelDeploymentMonitoringObjectiveConfig::new().set_deployed_model_id("example");Sourcepub fn set_objective_config<T>(self, v: T) -> Selfwhere
T: Into<ModelMonitoringObjectiveConfig>,
pub fn set_objective_config<T>(self, v: T) -> Selfwhere
T: Into<ModelMonitoringObjectiveConfig>,
Sets the value of objective_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::ModelMonitoringObjectiveConfig;
let x = ModelDeploymentMonitoringObjectiveConfig::new().set_objective_config(ModelMonitoringObjectiveConfig::default()/* use setters */);Sourcepub fn set_or_clear_objective_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ModelMonitoringObjectiveConfig>,
pub fn set_or_clear_objective_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ModelMonitoringObjectiveConfig>,
Sets or clears the value of objective_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::ModelMonitoringObjectiveConfig;
let x = ModelDeploymentMonitoringObjectiveConfig::new().set_or_clear_objective_config(Some(ModelMonitoringObjectiveConfig::default()/* use setters */));
let x = ModelDeploymentMonitoringObjectiveConfig::new().set_or_clear_objective_config(None::<ModelMonitoringObjectiveConfig>);Trait Implementations§
Source§impl Clone for ModelDeploymentMonitoringObjectiveConfig
impl Clone for ModelDeploymentMonitoringObjectiveConfig
Source§fn clone(&self) -> ModelDeploymentMonitoringObjectiveConfig
fn clone(&self) -> ModelDeploymentMonitoringObjectiveConfig
Returns a duplicate 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 ModelDeploymentMonitoringObjectiveConfig
impl Default for ModelDeploymentMonitoringObjectiveConfig
Source§fn default() -> ModelDeploymentMonitoringObjectiveConfig
fn default() -> ModelDeploymentMonitoringObjectiveConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModelDeploymentMonitoringObjectiveConfig
impl PartialEq for ModelDeploymentMonitoringObjectiveConfig
Source§fn eq(&self, other: &ModelDeploymentMonitoringObjectiveConfig) -> bool
fn eq(&self, other: &ModelDeploymentMonitoringObjectiveConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModelDeploymentMonitoringObjectiveConfig
Auto Trait Implementations§
impl Freeze for ModelDeploymentMonitoringObjectiveConfig
impl RefUnwindSafe for ModelDeploymentMonitoringObjectiveConfig
impl Send for ModelDeploymentMonitoringObjectiveConfig
impl Sync for ModelDeploymentMonitoringObjectiveConfig
impl Unpin for ModelDeploymentMonitoringObjectiveConfig
impl UnwindSafe for ModelDeploymentMonitoringObjectiveConfig
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