#[non_exhaustive]pub struct FinalBackupConfig {
pub enabled: Option<bool>,
pub retention_days: Option<i32>,
/* private fields */
}Expand description
Config used to determine the final backup settings for the instance.
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 the final backup is enabled for the instance.
retention_days: Option<i32>The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
Implementations§
Source§impl FinalBackupConfig
impl FinalBackupConfig
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_retention_days<T>(self, v: T) -> Self
pub fn set_retention_days<T>(self, v: T) -> Self
Sets the value of retention_days.
§Example
ⓘ
let x = FinalBackupConfig::new().set_retention_days(42);Sourcepub fn set_or_clear_retention_days<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_retention_days<T>(self, v: Option<T>) -> Self
Sets or clears the value of retention_days.
§Example
ⓘ
let x = FinalBackupConfig::new().set_or_clear_retention_days(Some(42));
let x = FinalBackupConfig::new().set_or_clear_retention_days(None::<i32>);Trait Implementations§
Source§impl Clone for FinalBackupConfig
impl Clone for FinalBackupConfig
Source§fn clone(&self) -> FinalBackupConfig
fn clone(&self) -> FinalBackupConfig
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 FinalBackupConfig
impl Debug for FinalBackupConfig
Source§impl Default for FinalBackupConfig
impl Default for FinalBackupConfig
Source§fn default() -> FinalBackupConfig
fn default() -> FinalBackupConfig
Returns the “default value” for a type. Read more
Source§impl Message for FinalBackupConfig
impl Message for FinalBackupConfig
Source§impl PartialEq for FinalBackupConfig
impl PartialEq for FinalBackupConfig
impl StructuralPartialEq for FinalBackupConfig
Auto Trait Implementations§
impl Freeze for FinalBackupConfig
impl RefUnwindSafe for FinalBackupConfig
impl Send for FinalBackupConfig
impl Sync for FinalBackupConfig
impl Unpin for FinalBackupConfig
impl UnwindSafe for FinalBackupConfig
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