#[non_exhaustive]pub struct ContinuousBackupConfig {
pub enabled: Option<bool>,
pub recovery_window_days: i32,
pub encryption_config: Option<EncryptionConfig>,
/* private fields */
}Expand description
ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster.
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.enabled: Option<bool>Whether ContinuousBackup is enabled.
recovery_window_days: i32The number of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days.
encryption_config: Option<EncryptionConfig>The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster’s encryption config.
Implementations§
Source§impl ContinuousBackupConfig
impl ContinuousBackupConfig
pub fn new() -> Self
Sourcepub fn set_enabled<T>(self, v: T) -> Self
pub fn set_enabled<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
Sourcepub fn set_recovery_window_days<T: Into<i32>>(self, v: T) -> Self
pub fn set_recovery_window_days<T: Into<i32>>(self, v: T) -> Self
Sets the value of recovery_window_days.
§Example
ⓘ
let x = ContinuousBackupConfig::new().set_recovery_window_days(42);Sourcepub fn set_encryption_config<T>(self, v: T) -> Selfwhere
T: Into<EncryptionConfig>,
pub fn set_encryption_config<T>(self, v: T) -> Selfwhere
T: Into<EncryptionConfig>,
Sets the value of encryption_config.
§Example
ⓘ
use google_cloud_alloydb_v1::model::EncryptionConfig;
let x = ContinuousBackupConfig::new().set_encryption_config(EncryptionConfig::default()/* use setters */);Sourcepub fn set_or_clear_encryption_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionConfig>,
pub fn set_or_clear_encryption_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionConfig>,
Sets or clears the value of encryption_config.
§Example
ⓘ
use google_cloud_alloydb_v1::model::EncryptionConfig;
let x = ContinuousBackupConfig::new().set_or_clear_encryption_config(Some(EncryptionConfig::default()/* use setters */));
let x = ContinuousBackupConfig::new().set_or_clear_encryption_config(None::<EncryptionConfig>);Trait Implementations§
Source§impl Clone for ContinuousBackupConfig
impl Clone for ContinuousBackupConfig
Source§fn clone(&self) -> ContinuousBackupConfig
fn clone(&self) -> ContinuousBackupConfig
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 ContinuousBackupConfig
impl Debug for ContinuousBackupConfig
Source§impl Default for ContinuousBackupConfig
impl Default for ContinuousBackupConfig
Source§fn default() -> ContinuousBackupConfig
fn default() -> ContinuousBackupConfig
Returns the “default value” for a type. Read more
Source§impl Message for ContinuousBackupConfig
impl Message for ContinuousBackupConfig
Source§impl PartialEq for ContinuousBackupConfig
impl PartialEq for ContinuousBackupConfig
impl StructuralPartialEq for ContinuousBackupConfig
Auto Trait Implementations§
impl Freeze for ContinuousBackupConfig
impl RefUnwindSafe for ContinuousBackupConfig
impl Send for ContinuousBackupConfig
impl Sync for ContinuousBackupConfig
impl Unpin for ContinuousBackupConfig
impl UnsafeUnpin for ContinuousBackupConfig
impl UnwindSafe for ContinuousBackupConfig
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