#[non_exhaustive]pub struct CreateBackupScheduleRequest {
pub parent: String,
pub backup_schedule_id: String,
pub backup_schedule: Option<BackupSchedule>,
/* private fields */
}Expand description
The request for CreateBackupSchedule.
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.parent: StringRequired. The name of the database that this backup schedule applies to.
backup_schedule_id: StringRequired. The Id to use for the backup schedule. The backup_schedule_id
appended to parent forms the full backup schedule name of the form
projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>.
backup_schedule: Option<BackupSchedule>Required. The backup schedule to create.
Implementations§
Source§impl CreateBackupScheduleRequest
impl CreateBackupScheduleRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_backup_schedule_id<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_schedule_id<T: Into<String>>(self, v: T) -> Self
Sets the value of backup_schedule_id.
Sourcepub fn set_backup_schedule<T>(self, v: T) -> Selfwhere
T: Into<BackupSchedule>,
pub fn set_backup_schedule<T>(self, v: T) -> Selfwhere
T: Into<BackupSchedule>,
Sets the value of backup_schedule.
Sourcepub fn set_or_clear_backup_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupSchedule>,
pub fn set_or_clear_backup_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupSchedule>,
Sets or clears the value of backup_schedule.
Trait Implementations§
Source§impl Clone for CreateBackupScheduleRequest
impl Clone for CreateBackupScheduleRequest
Source§fn clone(&self) -> CreateBackupScheduleRequest
fn clone(&self) -> CreateBackupScheduleRequest
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 CreateBackupScheduleRequest
impl Debug for CreateBackupScheduleRequest
Source§impl Default for CreateBackupScheduleRequest
impl Default for CreateBackupScheduleRequest
Source§fn default() -> CreateBackupScheduleRequest
fn default() -> CreateBackupScheduleRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateBackupScheduleRequest
Auto Trait Implementations§
impl Freeze for CreateBackupScheduleRequest
impl RefUnwindSafe for CreateBackupScheduleRequest
impl Send for CreateBackupScheduleRequest
impl Sync for CreateBackupScheduleRequest
impl Unpin for CreateBackupScheduleRequest
impl UnwindSafe for CreateBackupScheduleRequest
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