#[non_exhaustive]pub struct AutomatedBackupPolicy {
pub retention_period: Option<Duration>,
pub frequency: Option<Duration>,
pub locations: Vec<String>,
pub keep_hot_duration: Option<Duration>,
pub disabled: bool,
/* private fields */
}Expand description
Defines an automated backup policy for a table
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
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. Values must be at least 3 days and at most 90 days.
frequency: Option<Duration>How frequently automated backups should occur. The only supported value at this time is 24 hours. An undefined frequency is treated as 24 hours.
locations: Vec<String>Optional. A list of Cloud Bigtable zones where automated backups are
allowed to be created. If empty, automated backups will be created in all
zones of the instance. Locations are in the format
projects/{project}/locations/{zone}.
This field can only set for tables in Enterprise Plus instances.
keep_hot_duration: Option<Duration>Optional. The amount of time that the automated backups remain hot.
If specified, the backups created by this policy are HOT backups.
If not specified, the backups are STANDARD backups.
The value must be at least 24 hours and at most 10 days, and can’t
exceed the policy’s retention_period.
Only SSD instances support HOT automated backups.
disabled: boolOptional. If true, automated backups are explicitly disabled on this
table. This allows users to opt out of default enablement.
Implementations§
Source§impl AutomatedBackupPolicy
impl AutomatedBackupPolicy
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
Sourcepub fn set_locations<T, V>(self, v: T) -> Self
pub fn set_locations<T, V>(self, v: T) -> Self
Sourcepub fn set_keep_hot_duration<T>(self, v: T) -> Self
pub fn set_keep_hot_duration<T>(self, v: T) -> Self
Sets the value of keep_hot_duration.
§Example
use wkt::Duration;
let x = AutomatedBackupPolicy::new().set_keep_hot_duration(Duration::default()/* use setters */);Sourcepub fn set_or_clear_keep_hot_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_keep_hot_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of keep_hot_duration.
§Example
use wkt::Duration;
let x = AutomatedBackupPolicy::new().set_or_clear_keep_hot_duration(Some(Duration::default()/* use setters */));
let x = AutomatedBackupPolicy::new().set_or_clear_keep_hot_duration(None::<Duration>);Trait Implementations§
Source§impl Clone for AutomatedBackupPolicy
impl Clone for AutomatedBackupPolicy
Source§impl Debug for AutomatedBackupPolicy
impl Debug for AutomatedBackupPolicy
Source§impl Default for AutomatedBackupPolicy
impl Default for AutomatedBackupPolicy
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request