Struct googapis::google::spanner::admin::database::v1::RestoreDatabaseMetadata [−][src]
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>,
}
Expand description
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
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
Returns the enum value of source_type
, or the default if the field is set to an invalid enum value.
Sets source_type
to the provided enum value.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RestoreDatabaseMetadata
impl Send for RestoreDatabaseMetadata
impl Sync for RestoreDatabaseMetadata
impl Unpin for RestoreDatabaseMetadata
impl UnwindSafe for RestoreDatabaseMetadata
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more