#[non_exhaustive]pub struct AutomatedBackupPolicy {
pub retention_period: Option<Duration>,
pub frequency: Option<Duration>,
/* private fields */
}Expand description
Defines an automated backup policy for a table
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_period: Option<Duration>Required. How long the automated backups should be retained. The only supported value at this time is 3 days.
frequency: Option<Duration>Required. How frequently automated backups should occur. The only supported value at this time is 24 hours.
Implementations§
Source§impl AutomatedBackupPolicy
impl AutomatedBackupPolicy
pub fn new() -> Self
Sourcepub fn set_retention_period<T>(self, v: T) -> Self
pub fn set_retention_period<T>(self, v: T) -> Self
Sets the value of retention_period.
§Example
ⓘ
use wkt::Duration;
let x = AutomatedBackupPolicy::new().set_retention_period(Duration::default()/* use setters */);Sourcepub fn set_or_clear_retention_period<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_retention_period<T>(self, v: Option<T>) -> Self
Sets or clears the value of retention_period.
§Example
ⓘ
use wkt::Duration;
let x = AutomatedBackupPolicy::new().set_or_clear_retention_period(Some(Duration::default()/* use setters */));
let x = AutomatedBackupPolicy::new().set_or_clear_retention_period(None::<Duration>);Sourcepub fn set_frequency<T>(self, v: T) -> Self
pub fn set_frequency<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_frequency<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_frequency<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for AutomatedBackupPolicy
impl Clone for AutomatedBackupPolicy
Source§fn clone(&self) -> AutomatedBackupPolicy
fn clone(&self) -> AutomatedBackupPolicy
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 AutomatedBackupPolicy
impl Debug for AutomatedBackupPolicy
Source§impl Default for AutomatedBackupPolicy
impl Default for AutomatedBackupPolicy
Source§fn default() -> AutomatedBackupPolicy
fn default() -> AutomatedBackupPolicy
Returns the “default value” for a type. Read more
Source§impl Message for AutomatedBackupPolicy
impl Message for AutomatedBackupPolicy
Source§impl PartialEq for AutomatedBackupPolicy
impl PartialEq for AutomatedBackupPolicy
impl StructuralPartialEq for AutomatedBackupPolicy
Auto Trait Implementations§
impl Freeze for AutomatedBackupPolicy
impl RefUnwindSafe for AutomatedBackupPolicy
impl Send for AutomatedBackupPolicy
impl Sync for AutomatedBackupPolicy
impl Unpin for AutomatedBackupPolicy
impl UnwindSafe for AutomatedBackupPolicy
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