#[non_exhaustive]pub struct BackupConfiguration {
pub start_time: String,
pub enabled: Option<BoolValue>,
pub kind: String,
pub binary_log_enabled: Option<BoolValue>,
pub replication_log_archiving_enabled: Option<BoolValue>,
pub location: String,
pub point_in_time_recovery_enabled: Option<BoolValue>,
pub backup_retention_settings: Option<BackupRetentionSettings>,
pub transaction_log_retention_days: Option<Int32Value>,
pub transactional_log_storage_state: Option<TransactionalLogStorageState>,
/* private fields */
}
Expand description
Database instance backup configuration.
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.start_time: String
Start time for the daily backup configuration in UTC timezone in the 24
hour format - HH:MM
.
enabled: Option<BoolValue>
Whether this configuration is enabled.
kind: String
This is always sql#backupConfiguration
.
binary_log_enabled: Option<BoolValue>
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
replication_log_archiving_enabled: Option<BoolValue>
Reserved for future use.
location: String
Location of the backup
point_in_time_recovery_enabled: Option<BoolValue>
Whether point in time recovery is enabled.
backup_retention_settings: Option<BackupRetentionSettings>
Backup retention settings.
transaction_log_retention_days: Option<Int32Value>
The number of days of transaction logs we retain for point in time restore, from 1-7.
transactional_log_storage_state: Option<TransactionalLogStorageState>
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
pub fn new() -> Self
Sourcepub fn set_start_time<T: Into<String>>(self, v: T) -> Self
pub fn set_start_time<T: Into<String>>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_enabled<T>(self, v: T) -> Self
pub fn set_enabled<T>(self, v: T) -> Self
Sets the value of enabled.
Sourcepub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of enabled.
Sourcepub fn set_binary_log_enabled<T>(self, v: T) -> Self
pub fn set_binary_log_enabled<T>(self, v: T) -> Self
Sets the value of binary_log_enabled.
Sourcepub fn set_or_clear_binary_log_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_binary_log_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of binary_log_enabled.
Sourcepub fn set_replication_log_archiving_enabled<T>(self, v: T) -> Self
pub fn set_replication_log_archiving_enabled<T>(self, v: T) -> Self
Sets the value of replication_log_archiving_enabled.
Sourcepub fn set_or_clear_replication_log_archiving_enabled<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_replication_log_archiving_enabled<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of replication_log_archiving_enabled.
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sets the value of location.
Sourcepub fn set_point_in_time_recovery_enabled<T>(self, v: T) -> Self
pub fn set_point_in_time_recovery_enabled<T>(self, v: T) -> Self
Sets the value of point_in_time_recovery_enabled.
Sourcepub fn set_or_clear_point_in_time_recovery_enabled<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_point_in_time_recovery_enabled<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of point_in_time_recovery_enabled.
Sourcepub fn set_backup_retention_settings<T>(self, v: T) -> Selfwhere
T: Into<BackupRetentionSettings>,
pub fn set_backup_retention_settings<T>(self, v: T) -> Selfwhere
T: Into<BackupRetentionSettings>,
Sets the value of backup_retention_settings.
Sourcepub fn set_or_clear_backup_retention_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupRetentionSettings>,
pub fn set_or_clear_backup_retention_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<BackupRetentionSettings>,
Sets or clears the value of backup_retention_settings.
Sourcepub fn set_transaction_log_retention_days<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_transaction_log_retention_days<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of transaction_log_retention_days.
Sourcepub fn set_or_clear_transaction_log_retention_days<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_transaction_log_retention_days<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of transaction_log_retention_days.
Sourcepub fn set_transactional_log_storage_state<T>(self, v: T) -> Selfwhere
T: Into<TransactionalLogStorageState>,
pub fn set_transactional_log_storage_state<T>(self, v: T) -> Selfwhere
T: Into<TransactionalLogStorageState>,
Sets the value of transactional_log_storage_state.
Sourcepub fn set_or_clear_transactional_log_storage_state<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<TransactionalLogStorageState>,
pub fn set_or_clear_transactional_log_storage_state<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<TransactionalLogStorageState>,
Sets or clears the value of transactional_log_storage_state.
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 more