#[non_exhaustive]pub struct BackupRun {Show 18 fields
pub kind: String,
pub status: SqlBackupRunStatus,
pub enqueued_time: Option<Timestamp>,
pub id: i64,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub error: Option<OperationError>,
pub type: SqlBackupRunType,
pub description: String,
pub window_start_time: Option<Timestamp>,
pub instance: String,
pub self_link: String,
pub location: String,
pub disk_encryption_configuration: Option<DiskEncryptionConfiguration>,
pub disk_encryption_status: Option<DiskEncryptionStatus>,
pub backup_kind: SqlBackupKind,
pub time_zone: String,
pub max_chargeable_bytes: Option<i64>,
/* private fields */
}Expand description
A BackupRun resource.
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.kind: StringThis is always sql#backupRun.
status: SqlBackupRunStatusThe status of this run.
enqueued_time: Option<Timestamp>The time the run was enqueued in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
id: i64The identifier for this backup run. Unique only for a specific Cloud SQL instance.
start_time: Option<Timestamp>The time the backup operation actually started in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
end_time: Option<Timestamp>The time the backup operation completed in UTC timezone in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
error: Option<OperationError>Information about why the backup operation failed. This is only present if the run has the FAILED status.
type: SqlBackupRunTypeThe type of this run; can be either “AUTOMATED” or “ON_DEMAND” or “FINAL”. This field defaults to “ON_DEMAND” and is ignored, when specified for insert requests.
description: StringThe description of this run, only applicable to on-demand backups.
window_start_time: Option<Timestamp>The start time of the backup window during which this the backup was
attempted in RFC 3339 format, for
example 2012-11-15T16:19:00.094Z.
instance: StringName of the database instance.
self_link: StringThe URI of this resource.
location: StringLocation of the backups.
disk_encryption_configuration: Option<DiskEncryptionConfiguration>Encryption configuration specific to a backup.
disk_encryption_status: Option<DiskEncryptionStatus>Encryption status specific to a backup.
backup_kind: SqlBackupKindSpecifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
time_zone: StringBackup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.
max_chargeable_bytes: Option<i64>Output only. The maximum chargeable bytes for the backup.
Implementations§
Source§impl BackupRun
impl BackupRun
pub fn new() -> Self
Sourcepub fn set_status<T: Into<SqlBackupRunStatus>>(self, v: T) -> Self
pub fn set_status<T: Into<SqlBackupRunStatus>>(self, v: T) -> Self
Sets the value of status.
Sourcepub fn set_enqueued_time<T>(self, v: T) -> Self
pub fn set_enqueued_time<T>(self, v: T) -> Self
Sets the value of enqueued_time.
Sourcepub fn set_or_clear_enqueued_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enqueued_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of enqueued_time.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_error<T>(self, v: T) -> Selfwhere
T: Into<OperationError>,
pub fn set_error<T>(self, v: T) -> Selfwhere
T: Into<OperationError>,
Sets the value of error.
Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationError>,
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationError>,
Sets or clears the value of error.
Sourcepub fn set_type<T: Into<SqlBackupRunType>>(self, v: T) -> Self
pub fn set_type<T: Into<SqlBackupRunType>>(self, v: T) -> Self
Sets the value of r#type.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_window_start_time<T>(self, v: T) -> Self
pub fn set_window_start_time<T>(self, v: T) -> Self
Sets the value of window_start_time.
Sourcepub fn set_or_clear_window_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_window_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of window_start_time.
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_self_link<T: Into<String>>(self, v: T) -> Self
pub fn set_self_link<T: Into<String>>(self, v: T) -> Self
Sets the value of self_link.
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_disk_encryption_configuration<T>(self, v: T) -> Selfwhere
T: Into<DiskEncryptionConfiguration>,
pub fn set_disk_encryption_configuration<T>(self, v: T) -> Selfwhere
T: Into<DiskEncryptionConfiguration>,
Sets the value of disk_encryption_configuration.
Sourcepub fn set_or_clear_disk_encryption_configuration<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskEncryptionConfiguration>,
pub fn set_or_clear_disk_encryption_configuration<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskEncryptionConfiguration>,
Sets or clears the value of disk_encryption_configuration.
Sourcepub fn set_disk_encryption_status<T>(self, v: T) -> Selfwhere
T: Into<DiskEncryptionStatus>,
pub fn set_disk_encryption_status<T>(self, v: T) -> Selfwhere
T: Into<DiskEncryptionStatus>,
Sets the value of disk_encryption_status.
Sourcepub fn set_or_clear_disk_encryption_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskEncryptionStatus>,
pub fn set_or_clear_disk_encryption_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskEncryptionStatus>,
Sets or clears the value of disk_encryption_status.
Sourcepub fn set_backup_kind<T: Into<SqlBackupKind>>(self, v: T) -> Self
pub fn set_backup_kind<T: Into<SqlBackupKind>>(self, v: T) -> Self
Sets the value of backup_kind.
Sourcepub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
Sets the value of time_zone.
Sourcepub fn set_max_chargeable_bytes<T>(self, v: T) -> Self
pub fn set_max_chargeable_bytes<T>(self, v: T) -> Self
Sets the value of max_chargeable_bytes.
Sourcepub fn set_or_clear_max_chargeable_bytes<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_max_chargeable_bytes<T>(self, v: Option<T>) -> Self
Sets or clears the value of max_chargeable_bytes.