Struct google_api_proto::google::spanner::admin::database::v1::RestoreDatabaseMetadata
source · 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§
source§impl RestoreDatabaseMetadata
impl RestoreDatabaseMetadata
sourcepub fn source_type(&self) -> RestoreSourceType
pub fn source_type(&self) -> RestoreSourceType
Returns the enum value of source_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_source_type(&mut self, value: RestoreSourceType)
pub fn set_source_type(&mut self, value: RestoreSourceType)
Sets source_type
to the provided enum value.
Trait Implementations§
source§impl Clone for RestoreDatabaseMetadata
impl Clone for RestoreDatabaseMetadata
source§fn clone(&self) -> RestoreDatabaseMetadata
fn clone(&self) -> RestoreDatabaseMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RestoreDatabaseMetadata
impl Debug for RestoreDatabaseMetadata
source§impl Default for RestoreDatabaseMetadata
impl Default for RestoreDatabaseMetadata
source§impl Message for RestoreDatabaseMetadata
impl Message for RestoreDatabaseMetadata
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 RestoreDatabaseMetadata
impl PartialEq for RestoreDatabaseMetadata
source§fn eq(&self, other: &RestoreDatabaseMetadata) -> bool
fn eq(&self, other: &RestoreDatabaseMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RestoreDatabaseMetadata
Auto Trait Implementations§
impl Freeze for RestoreDatabaseMetadata
impl RefUnwindSafe for RestoreDatabaseMetadata
impl Send for RestoreDatabaseMetadata
impl Sync for RestoreDatabaseMetadata
impl Unpin for RestoreDatabaseMetadata
impl UnwindSafe for RestoreDatabaseMetadata
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