Struct gapi_grpc::google::cloud::sql::v1beta4::BackupRun[][src]

pub struct BackupRun {
    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,
}

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”. 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. Applies only to Second Generation instances.

disk_encryption_status: Option<DiskEncryptionStatus>

Encryption status specific to a backup. Applies only to Second Generation instances.

backup_kind: i32

Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

Implementations

impl BackupRun[src]

pub fn status(&self) -> SqlBackupRunStatus[src]

Returns the enum value of status, or the default if the field is set to an invalid enum value.

pub fn set_status(&mut self, value: SqlBackupRunStatus)[src]

Sets status to the provided enum value.

pub fn type(&self) -> SqlBackupRunType[src]

Returns the enum value of type, or the default if the field is set to an invalid enum value.

pub fn set_type(&mut self, value: SqlBackupRunType)[src]

Sets type to the provided enum value.

pub fn backup_kind(&self) -> SqlBackupKind[src]

Returns the enum value of backup_kind, or the default if the field is set to an invalid enum value.

pub fn set_backup_kind(&mut self, value: SqlBackupKind)[src]

Sets backup_kind to the provided enum value.

Trait Implementations

impl Clone for BackupRun[src]

impl Debug for BackupRun[src]

impl Default for BackupRun[src]

impl Message for BackupRun[src]

impl PartialEq<BackupRun> for BackupRun[src]

impl StructuralPartialEq for BackupRun[src]

Auto Trait Implementations

impl RefUnwindSafe for BackupRun

impl Send for BackupRun

impl Sync for BackupRun

impl Unpin for BackupRun

impl UnwindSafe for BackupRun

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]