pub struct BackupRetentionSettings {
pub retained_backups: Option<i32>,
pub retention_unit: Option<String>,
}
Expand description
We currently only support backup retention by specifying the number of backups we will retain.
This type is not used in any activity, and only used as part of another schema.
Fields§
§retained_backups: Option<i32>
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.
retention_unit: Option<String>
The unit that ‘retained_backups’ represents.
Trait Implementations§
source§impl Clone for BackupRetentionSettings
impl Clone for BackupRetentionSettings
source§fn clone(&self) -> BackupRetentionSettings
fn clone(&self) -> BackupRetentionSettings
Returns a copy 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<'de> Deserialize<'de> for BackupRetentionSettings
impl<'de> Deserialize<'de> for BackupRetentionSettings
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for BackupRetentionSettings
impl Serialize for BackupRetentionSettings
impl Part for BackupRetentionSettings
Auto Trait Implementations§
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