[][src]Struct gcp_client::google::spanner::admin::database::v1::RestoreDatabaseMetadata

pub struct RestoreDatabaseMetadata {
    pub name: String,
    pub source_type: i32,
    pub progress: Option<OperationProgress>,
    pub cancel_time: Option<Timestamp>,
    pub optimize_database_operation_name: String,
    pub source_info: Option<SourceInfo>,
}

Metadata type for the long-running operation returned by [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase].

Fields

name: String

Name of the database being created and restored to.

source_type: i32

The type of the restore source.

progress: Option<OperationProgress>

The progress of the [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase] operation.

cancel_time: Option<Timestamp>

The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to Code.CANCELLED.

optimize_database_operation_name: String

If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored database, and remove the dependency on the restore source. The name is of the form projects/<project>/instances/<instance>/databases/<database>/operations/<operation> where the is the name of database being created and restored to. The metadata type of the long-running operation is [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be automatically created by the system after the RestoreDatabase long-running operation completes successfully. This operation will not be created if the restore was not successful.

source_info: Option<SourceInfo>

Information about the source used to restore the database, as specified by source in [RestoreDatabaseRequest][google.spanner.admin.database.v1.RestoreDatabaseRequest].

Implementations

impl RestoreDatabaseMetadata[src]

pub fn source_type(&self) -> RestoreSourceType[src]

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

pub fn set_source_type(&mut self, value: RestoreSourceType)[src]

Sets source_type to the provided enum value.

Trait Implementations

impl Clone for RestoreDatabaseMetadata[src]

impl Debug for RestoreDatabaseMetadata[src]

impl Default for RestoreDatabaseMetadata[src]

impl Message for RestoreDatabaseMetadata[src]

impl PartialEq<RestoreDatabaseMetadata> for RestoreDatabaseMetadata[src]

impl StructuralPartialEq for RestoreDatabaseMetadata[src]

Auto Trait Implementations

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, 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>, 

impl<T> WithSubscriber for T[src]