#[non_exhaustive]pub struct UpdateReplicationRequest {
pub update_mask: Option<FieldMask>,
pub replication: Option<Replication>,
/* private fields */
}Expand description
UpdateReplicationRequest updates description and/or labels for a replication.
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>Required. Mask of fields to update. At least one path must be supplied in this field.
replication: Option<Replication>Required. A replication resource
Implementations§
Source§impl UpdateReplicationRequest
impl UpdateReplicationRequest
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 = UpdateReplicationRequest::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 = UpdateReplicationRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateReplicationRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_replication<T>(self, v: T) -> Selfwhere
T: Into<Replication>,
pub fn set_replication<T>(self, v: T) -> Selfwhere
T: Into<Replication>,
Sets the value of replication.
§Example
ⓘ
use google_cloud_netapp_v1::model::Replication;
let x = UpdateReplicationRequest::new().set_replication(Replication::default()/* use setters */);Sourcepub fn set_or_clear_replication<T>(self, v: Option<T>) -> Selfwhere
T: Into<Replication>,
pub fn set_or_clear_replication<T>(self, v: Option<T>) -> Selfwhere
T: Into<Replication>,
Sets or clears the value of replication.
§Example
ⓘ
use google_cloud_netapp_v1::model::Replication;
let x = UpdateReplicationRequest::new().set_or_clear_replication(Some(Replication::default()/* use setters */));
let x = UpdateReplicationRequest::new().set_or_clear_replication(None::<Replication>);Trait Implementations§
Source§impl Clone for UpdateReplicationRequest
impl Clone for UpdateReplicationRequest
Source§fn clone(&self) -> UpdateReplicationRequest
fn clone(&self) -> UpdateReplicationRequest
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 Debug for UpdateReplicationRequest
impl Debug for UpdateReplicationRequest
Source§impl Default for UpdateReplicationRequest
impl Default for UpdateReplicationRequest
Source§fn default() -> UpdateReplicationRequest
fn default() -> UpdateReplicationRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateReplicationRequest
impl Message for UpdateReplicationRequest
Source§impl PartialEq for UpdateReplicationRequest
impl PartialEq for UpdateReplicationRequest
impl StructuralPartialEq for UpdateReplicationRequest
Auto Trait Implementations§
impl Freeze for UpdateReplicationRequest
impl RefUnwindSafe for UpdateReplicationRequest
impl Send for UpdateReplicationRequest
impl Sync for UpdateReplicationRequest
impl Unpin for UpdateReplicationRequest
impl UnsafeUnpin for UpdateReplicationRequest
impl UnwindSafe for UpdateReplicationRequest
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