#[non_exhaustive]pub struct UpdateVolumeRequest {
pub volume: Option<Volume>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Message for updating a volume.
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.volume: Option<Volume>Required. The volume to update.
The name field is used to identify the volume to update.
Format: projects/{project}/locations/{location}/volumes/{volume}
update_mask: Option<FieldMask>The list of fields to update. The only currently supported fields are: ‘labels’
Implementations§
Source§impl UpdateVolumeRequest
impl UpdateVolumeRequest
pub fn new() -> Self
Sourcepub fn set_volume<T>(self, v: T) -> Self
pub fn set_volume<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_volume<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_volume<T>(self, v: Option<T>) -> 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 = UpdateVolumeRequest::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 = UpdateVolumeRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateVolumeRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateVolumeRequest
impl Clone for UpdateVolumeRequest
Source§fn clone(&self) -> UpdateVolumeRequest
fn clone(&self) -> UpdateVolumeRequest
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 UpdateVolumeRequest
impl Debug for UpdateVolumeRequest
Source§impl Default for UpdateVolumeRequest
impl Default for UpdateVolumeRequest
Source§fn default() -> UpdateVolumeRequest
fn default() -> UpdateVolumeRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateVolumeRequest
impl Message for UpdateVolumeRequest
Source§impl PartialEq for UpdateVolumeRequest
impl PartialEq for UpdateVolumeRequest
impl StructuralPartialEq for UpdateVolumeRequest
Auto Trait Implementations§
impl Freeze for UpdateVolumeRequest
impl RefUnwindSafe for UpdateVolumeRequest
impl Send for UpdateVolumeRequest
impl Sync for UpdateVolumeRequest
impl Unpin for UpdateVolumeRequest
impl UnwindSafe for UpdateVolumeRequest
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