Struct google_api_proto::google::cloud::sql::v1::BackupConfiguration
source · pub struct BackupConfiguration {
pub start_time: String,
pub enabled: Option<bool>,
pub kind: String,
pub binary_log_enabled: Option<bool>,
pub replication_log_archiving_enabled: Option<bool>,
pub location: String,
pub point_in_time_recovery_enabled: Option<bool>,
pub backup_retention_settings: Option<BackupRetentionSettings>,
pub transaction_log_retention_days: Option<i32>,
pub transactional_log_storage_state: Option<i32>,
}
Expand description
Database instance backup configuration.
Fields§
§start_time: String
Start time for the daily backup configuration in UTC timezone in the 24
hour format - HH:MM
.
enabled: Option<bool>
Whether this configuration is enabled.
kind: String
This is always sql#backupConfiguration
.
binary_log_enabled: Option<bool>
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
replication_log_archiving_enabled: Option<bool>
Reserved for future use.
location: String
Location of the backup
point_in_time_recovery_enabled: Option<bool>
Whether point in time recovery is enabled.
backup_retention_settings: Option<BackupRetentionSettings>
Backup retention settings.
transaction_log_retention_days: Option<i32>
The number of days of transaction logs we retain for point in time restore, from 1-7.
transactional_log_storage_state: Option<i32>
Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
Implementations§
source§impl BackupConfiguration
impl BackupConfiguration
sourcepub fn transactional_log_storage_state(&self) -> TransactionalLogStorageState
pub fn transactional_log_storage_state(&self) -> TransactionalLogStorageState
Returns the enum value of transactional_log_storage_state
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_transactional_log_storage_state(
&mut self,
value: TransactionalLogStorageState,
)
pub fn set_transactional_log_storage_state( &mut self, value: TransactionalLogStorageState, )
Sets transactional_log_storage_state
to the provided enum value.
Trait Implementations§
source§impl Clone for BackupConfiguration
impl Clone for BackupConfiguration
source§fn clone(&self) -> BackupConfiguration
fn clone(&self) -> BackupConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BackupConfiguration
impl Debug for BackupConfiguration
source§impl Default for BackupConfiguration
impl Default for BackupConfiguration
source§impl Message for BackupConfiguration
impl Message for BackupConfiguration
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for BackupConfiguration
impl PartialEq for BackupConfiguration
source§fn eq(&self, other: &BackupConfiguration) -> bool
fn eq(&self, other: &BackupConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BackupConfiguration
Auto Trait Implementations§
impl Freeze for BackupConfiguration
impl RefUnwindSafe for BackupConfiguration
impl Send for BackupConfiguration
impl Sync for BackupConfiguration
impl Unpin for BackupConfiguration
impl UnwindSafe for BackupConfiguration
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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