#[non_exhaustive]pub struct BackupRetentionSettings {
pub retention_unit: RetentionUnit,
pub retained_backups: Option<Int32Value>,
/* private fields */
}
Expand description
We currently only support backup retention by specifying the number of backups we will retain.
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.retention_unit: RetentionUnit
The unit that ‘retained_backups’ represents.
retained_backups: Option<Int32Value>
Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is ‘COUNT’, we will retain this many backups.
Implementations§
Source§impl BackupRetentionSettings
impl BackupRetentionSettings
pub fn new() -> Self
Sourcepub fn set_retention_unit<T: Into<RetentionUnit>>(self, v: T) -> Self
pub fn set_retention_unit<T: Into<RetentionUnit>>(self, v: T) -> Self
Sets the value of retention_unit.
Sourcepub fn set_retained_backups<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_retained_backups<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of retained_backups.
Sourcepub fn set_or_clear_retained_backups<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_retained_backups<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of retained_backups.
Trait Implementations§
Source§impl Clone for BackupRetentionSettings
impl Clone for BackupRetentionSettings
Source§fn clone(&self) -> BackupRetentionSettings
fn clone(&self) -> BackupRetentionSettings
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 BackupRetentionSettings
impl Debug for BackupRetentionSettings
Source§impl Default for BackupRetentionSettings
impl Default for BackupRetentionSettings
Source§fn default() -> BackupRetentionSettings
fn default() -> BackupRetentionSettings
Returns the “default value” for a type. Read more
Source§impl Message for BackupRetentionSettings
impl Message for BackupRetentionSettings
Source§impl PartialEq for BackupRetentionSettings
impl PartialEq for BackupRetentionSettings
impl StructuralPartialEq for BackupRetentionSettings
Auto Trait Implementations§
impl Freeze for BackupRetentionSettings
impl RefUnwindSafe for BackupRetentionSettings
impl Send for BackupRetentionSettings
impl Sync for BackupRetentionSettings
impl Unpin for BackupRetentionSettings
impl UnwindSafe for BackupRetentionSettings
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