#[non_exhaustive]pub struct UpdateAutoMigrationConfigRequest {
pub update_mask: Option<FieldMask>,
pub auto_migration_config: Option<AutoMigrationConfig>,
/* private fields */
}Expand description
The request message for the UpdateAutoMigrationConfig method.
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.update_mask: Option<FieldMask>Optional. The update mask applies to the resource. See google.protobuf.FieldMask.
auto_migration_config: Option<AutoMigrationConfig>Required. The AutoMigrationConfig to update.
Implementations§
Source§impl UpdateAutoMigrationConfigRequest
impl UpdateAutoMigrationConfigRequest
pub fn new() -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateAutoMigrationConfigRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateAutoMigrationConfigRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateAutoMigrationConfigRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_auto_migration_config<T>(self, v: T) -> Selfwhere
T: Into<AutoMigrationConfig>,
pub fn set_auto_migration_config<T>(self, v: T) -> Selfwhere
T: Into<AutoMigrationConfig>,
Sets the value of auto_migration_config.
§Example
ⓘ
use google_cloud_config_v1::model::AutoMigrationConfig;
let x = UpdateAutoMigrationConfigRequest::new().set_auto_migration_config(AutoMigrationConfig::default()/* use setters */);Sourcepub fn set_or_clear_auto_migration_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoMigrationConfig>,
pub fn set_or_clear_auto_migration_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoMigrationConfig>,
Sets or clears the value of auto_migration_config.
§Example
ⓘ
use google_cloud_config_v1::model::AutoMigrationConfig;
let x = UpdateAutoMigrationConfigRequest::new().set_or_clear_auto_migration_config(Some(AutoMigrationConfig::default()/* use setters */));
let x = UpdateAutoMigrationConfigRequest::new().set_or_clear_auto_migration_config(None::<AutoMigrationConfig>);Trait Implementations§
Source§impl Clone for UpdateAutoMigrationConfigRequest
impl Clone for UpdateAutoMigrationConfigRequest
Source§fn clone(&self) -> UpdateAutoMigrationConfigRequest
fn clone(&self) -> UpdateAutoMigrationConfigRequest
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 UpdateAutoMigrationConfigRequest
impl Default for UpdateAutoMigrationConfigRequest
Source§fn default() -> UpdateAutoMigrationConfigRequest
fn default() -> UpdateAutoMigrationConfigRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateAutoMigrationConfigRequest
impl PartialEq for UpdateAutoMigrationConfigRequest
Source§fn eq(&self, other: &UpdateAutoMigrationConfigRequest) -> bool
fn eq(&self, other: &UpdateAutoMigrationConfigRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateAutoMigrationConfigRequest
Auto Trait Implementations§
impl Freeze for UpdateAutoMigrationConfigRequest
impl RefUnwindSafe for UpdateAutoMigrationConfigRequest
impl Send for UpdateAutoMigrationConfigRequest
impl Sync for UpdateAutoMigrationConfigRequest
impl Unpin for UpdateAutoMigrationConfigRequest
impl UnwindSafe for UpdateAutoMigrationConfigRequest
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