pub struct BackupRun {Show 17 fields
pub kind: String,
pub status: i32,
pub enqueued_time: Option<Timestamp>,
pub id: i64,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub error: Option<OperationError>,
pub type: i32,
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: i32,
pub time_zone: String,
}
Expand description
A BackupRun resource.
Fields§
§kind: String
This is always sql#backupRun
.
status: i32
The 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: i64
The 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: i32
The 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: String
The 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: String
Name of the database instance.
self_link: String
The URI of this resource.
location: String
Location 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: i32
Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
time_zone: String
Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.
Implementations§
source§impl BackupRun
impl BackupRun
sourcepub fn status(&self) -> SqlBackupRunStatus
pub fn status(&self) -> SqlBackupRunStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: SqlBackupRunStatus)
pub fn set_status(&mut self, value: SqlBackupRunStatus)
Sets status
to the provided enum value.
sourcepub fn type(&self) -> SqlBackupRunType
pub fn type(&self) -> SqlBackupRunType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: SqlBackupRunType)
pub fn set_type(&mut self, value: SqlBackupRunType)
Sets type
to the provided enum value.
sourcepub fn backup_kind(&self) -> SqlBackupKind
pub fn backup_kind(&self) -> SqlBackupKind
Returns the enum value of backup_kind
, or the default if the field is set to an invalid enum value.
sourcepub fn set_backup_kind(&mut self, value: SqlBackupKind)
pub fn set_backup_kind(&mut self, value: SqlBackupKind)
Sets backup_kind
to the provided enum value.
Trait Implementations§
source§impl Message for BackupRun
impl Message for BackupRun
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 BackupRun
impl PartialEq for BackupRun
impl StructuralPartialEq for BackupRun
Auto Trait Implementations§
impl Freeze for BackupRun
impl RefUnwindSafe for BackupRun
impl Send for BackupRun
impl Sync for BackupRun
impl Unpin for BackupRun
impl UnwindSafe for BackupRun
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