#[non_exhaustive]pub struct UpdateBackupRequest {
pub backup: Option<Backup>,
pub update_mask: Option<FieldMask>,
/* private fields */
}
Expand description
The request for UpdateBackup.
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.backup: Option<Backup>
Required. The backup to update. backup.name
, and the fields to be updated
as specified by update_mask
are required. Other fields are ignored.
Update is only supported for the following fields:
backup.expire_time
.
update_mask: Option<FieldMask>
Required. A mask specifying which fields (e.g. expire_time
) in the
Backup resource should be updated. This mask is relative to the Backup
resource, not to the request message. The field mask must always be
specified; this prevents any future fields from being erased accidentally
by clients that do not know about them.
Implementations§
Source§impl UpdateBackupRequest
impl UpdateBackupRequest
pub fn new() -> Self
Sourcepub fn set_backup<T>(self, v: T) -> Self
pub fn set_backup<T>(self, v: T) -> Self
Sets the value of backup.
Sourcepub fn set_or_clear_backup<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_backup<T>(self, v: Option<T>) -> Self
Sets or clears the value of backup.
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.
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.
Trait Implementations§
Source§impl Clone for UpdateBackupRequest
impl Clone for UpdateBackupRequest
Source§fn clone(&self) -> UpdateBackupRequest
fn clone(&self) -> UpdateBackupRequest
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 UpdateBackupRequest
impl Debug for UpdateBackupRequest
Source§impl Default for UpdateBackupRequest
impl Default for UpdateBackupRequest
Source§fn default() -> UpdateBackupRequest
fn default() -> UpdateBackupRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateBackupRequest
impl Message for UpdateBackupRequest
Source§impl PartialEq for UpdateBackupRequest
impl PartialEq for UpdateBackupRequest
impl StructuralPartialEq for UpdateBackupRequest
Auto Trait Implementations§
impl Freeze for UpdateBackupRequest
impl RefUnwindSafe for UpdateBackupRequest
impl Send for UpdateBackupRequest
impl Sync for UpdateBackupRequest
impl Unpin for UpdateBackupRequest
impl UnwindSafe for UpdateBackupRequest
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