#[non_exhaustive]pub struct BackupInstanceRequest {
pub name: String,
pub ttl: Option<Duration>,
pub backup_id: Option<String>,
/* private fields */
}Expand description
Request for [BackupInstance].
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.name: StringRequired. Instance resource name using the form:
projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id refers to a Google Cloud region.
ttl: Option<Duration>Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
backup_id: Option<String>Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Instance UID] is used.
Implementations§
Trait Implementations§
Source§impl Clone for BackupInstanceRequest
impl Clone for BackupInstanceRequest
Source§fn clone(&self) -> BackupInstanceRequest
fn clone(&self) -> BackupInstanceRequest
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 BackupInstanceRequest
impl Debug for BackupInstanceRequest
Source§impl Default for BackupInstanceRequest
impl Default for BackupInstanceRequest
Source§fn default() -> BackupInstanceRequest
fn default() -> BackupInstanceRequest
Returns the “default value” for a type. Read more
Source§impl Message for BackupInstanceRequest
impl Message for BackupInstanceRequest
Source§impl PartialEq for BackupInstanceRequest
impl PartialEq for BackupInstanceRequest
impl StructuralPartialEq for BackupInstanceRequest
Auto Trait Implementations§
impl Freeze for BackupInstanceRequest
impl RefUnwindSafe for BackupInstanceRequest
impl Send for BackupInstanceRequest
impl Sync for BackupInstanceRequest
impl Unpin for BackupInstanceRequest
impl UnwindSafe for BackupInstanceRequest
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