#[non_exhaustive]pub struct CreateBackupRequest {
pub parent: String,
pub backup_id: String,
pub backup: Option<Backup>,
/* private fields */
}Expand description
The request for CreateBackup.
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. This must be one of the clusters in the instance in which this
table is located. The backup will be stored in this cluster. Values are
of the form projects/{project}/instances/{instance}/clusters/{cluster}.
backup_id: StringRequired. The id of the backup to be created. The backup_id along with
the parent parent are combined as {parent}/backups/{backup_id} to create
the full backup name, of the form:
projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}.
This string must be between 1 and 50 characters in length and match the
regex [a-zA-Z0-9][-.a-zA-Z0-9]*.
backup: Option<Backup>Required. The backup to create.
Implementations§
Source§impl CreateBackupRequest
impl CreateBackupRequest
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
Sourcepub fn set_backup_id<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_backup<T>(self, v: T) -> Self
pub fn set_backup<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_backup<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_backup<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateBackupRequest
impl Clone for CreateBackupRequest
Source§fn clone(&self) -> CreateBackupRequest
fn clone(&self) -> CreateBackupRequest
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 CreateBackupRequest
impl Debug for CreateBackupRequest
Source§impl Default for CreateBackupRequest
impl Default for CreateBackupRequest
Source§fn default() -> CreateBackupRequest
fn default() -> CreateBackupRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateBackupRequest
impl Message for CreateBackupRequest
Source§impl PartialEq for CreateBackupRequest
impl PartialEq for CreateBackupRequest
impl StructuralPartialEq for CreateBackupRequest
Auto Trait Implementations§
impl Freeze for CreateBackupRequest
impl RefUnwindSafe for CreateBackupRequest
impl Send for CreateBackupRequest
impl Sync for CreateBackupRequest
impl Unpin for CreateBackupRequest
impl UnwindSafe for CreateBackupRequest
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