#[non_exhaustive]pub struct UpdateBackupScheduleRequest {
pub backup_schedule: Option<BackupSchedule>,
pub update_mask: Option<FieldMask>,
}
Expand description
The request for UpdateBackupScheduleRequest.
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_schedule: Option<BackupSchedule>
Required. The backup schedule to update. backup_schedule.name
, and the
fields to be updated as specified by update_mask
are required. Other
fields are ignored.
update_mask: Option<FieldMask>
Required. A mask specifying which fields in the BackupSchedule resource should be updated. This mask is relative to the BackupSchedule resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally.
Implementations§
Source§impl UpdateBackupScheduleRequest
impl UpdateBackupScheduleRequest
pub fn new() -> Self
Sourcepub fn set_backup_schedule<T: Into<Option<BackupSchedule>>>(self, v: T) -> Self
pub fn set_backup_schedule<T: Into<Option<BackupSchedule>>>(self, v: T) -> Self
Sets the value of backup_schedule.
Sourcepub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
pub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
Sets the value of update_mask.
Trait Implementations§
Source§impl Clone for UpdateBackupScheduleRequest
impl Clone for UpdateBackupScheduleRequest
Source§fn clone(&self) -> UpdateBackupScheduleRequest
fn clone(&self) -> UpdateBackupScheduleRequest
Returns a copy 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 UpdateBackupScheduleRequest
impl Debug for UpdateBackupScheduleRequest
Source§impl Default for UpdateBackupScheduleRequest
impl Default for UpdateBackupScheduleRequest
Source§fn default() -> UpdateBackupScheduleRequest
fn default() -> UpdateBackupScheduleRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateBackupScheduleRequestwhere
UpdateBackupScheduleRequest: Default,
impl<'de> Deserialize<'de> for UpdateBackupScheduleRequestwhere
UpdateBackupScheduleRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for UpdateBackupScheduleRequest
impl Message for UpdateBackupScheduleRequest
impl StructuralPartialEq for UpdateBackupScheduleRequest
Auto Trait Implementations§
impl Freeze for UpdateBackupScheduleRequest
impl RefUnwindSafe for UpdateBackupScheduleRequest
impl Send for UpdateBackupScheduleRequest
impl Sync for UpdateBackupScheduleRequest
impl Unpin for UpdateBackupScheduleRequest
impl UnwindSafe for UpdateBackupScheduleRequest
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