#[non_exhaustive]pub struct BackupClusterRequest {
pub name: String,
pub ttl: Option<Duration>,
pub backup_id: Option<String>,
/* private fields */
}Expand description
Request for [BackupCluster].
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. Redis cluster resource name using the form:
projects/{project_id}/locations/{location_id}/clusters/{cluster_id}
where location_id refers to a GCP 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 Cluster UID] is used.
Implementations§
Source§impl BackupClusterRequest
impl BackupClusterRequest
pub fn new() -> Self
Sourcepub fn set_or_clear_ttl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ttl<T>(self, v: Option<T>) -> Self
Sets or clears the value of ttl.
Sourcepub fn set_backup_id<T>(self, v: T) -> Self
pub fn set_backup_id<T>(self, v: T) -> Self
Sets the value of backup_id.
Trait Implementations§
Source§impl Clone for BackupClusterRequest
impl Clone for BackupClusterRequest
Source§fn clone(&self) -> BackupClusterRequest
fn clone(&self) -> BackupClusterRequest
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 BackupClusterRequest
impl Debug for BackupClusterRequest
Source§impl Default for BackupClusterRequest
impl Default for BackupClusterRequest
Source§fn default() -> BackupClusterRequest
fn default() -> BackupClusterRequest
Returns the “default value” for a type. Read more
Source§impl Message for BackupClusterRequest
impl Message for BackupClusterRequest
Source§impl PartialEq for BackupClusterRequest
impl PartialEq for BackupClusterRequest
impl StructuralPartialEq for BackupClusterRequest
Auto Trait Implementations§
impl Freeze for BackupClusterRequest
impl RefUnwindSafe for BackupClusterRequest
impl Send for BackupClusterRequest
impl Sync for BackupClusterRequest
impl Unpin for BackupClusterRequest
impl UnwindSafe for BackupClusterRequest
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