#[non_exhaustive]pub struct CopyBackupMetadata {
pub name: String,
pub source_backup: String,
pub progress: Option<OperationProgress>,
pub cancel_time: Option<Timestamp>,
/* private fields */
}Expand description
Metadata type for the operation returned by CopyBackup.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the backup being created through the copy operation.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>.
source_backup: StringThe name of the source backup that is being copied.
Values are of the form
projects/<project>/instances/<instance>/backups/<backup>.
progress: Option<OperationProgress>The progress of the CopyBackup operation.
cancel_time: Option<Timestamp>The time at which cancellation of CopyBackup 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 value with a
google.rpc.Status.code of 1,
corresponding to Code.CANCELLED.
Implementations§
Source§impl CopyBackupMetadata
impl CopyBackupMetadata
Sourcepub fn set_source_backup<T: Into<String>>(self, v: T) -> Self
pub fn set_source_backup<T: Into<String>>(self, v: T) -> Self
Sets the value of source_backup.
§Example
let x = CopyBackupMetadata::new().set_source_backup(format!("projects/{project_id}/instances/{instance_id}/backups/{backup_id}"));Sourcepub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
pub fn set_progress<T>(self, v: T) -> Selfwhere
T: Into<OperationProgress>,
Sourcepub fn set_or_clear_progress<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationProgress>,
pub fn set_or_clear_progress<T>(self, v: Option<T>) -> Selfwhere
T: Into<OperationProgress>,
Sets or clears the value of progress.
§Example
use google_cloud_spanner_admin_database_v1::model::OperationProgress;
let x = CopyBackupMetadata::new().set_or_clear_progress(Some(OperationProgress::default()/* use setters */));
let x = CopyBackupMetadata::new().set_or_clear_progress(None::<OperationProgress>);Sourcepub fn set_cancel_time<T>(self, v: T) -> Self
pub fn set_cancel_time<T>(self, v: T) -> Self
Sets the value of cancel_time.
§Example
use wkt::Timestamp;
let x = CopyBackupMetadata::new().set_cancel_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_cancel_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cancel_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of cancel_time.
§Example
use wkt::Timestamp;
let x = CopyBackupMetadata::new().set_or_clear_cancel_time(Some(Timestamp::default()/* use setters */));
let x = CopyBackupMetadata::new().set_or_clear_cancel_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for CopyBackupMetadata
impl Clone for CopyBackupMetadata
Source§fn clone(&self) -> CopyBackupMetadata
fn clone(&self) -> CopyBackupMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CopyBackupMetadata
impl Debug for CopyBackupMetadata
Source§impl Default for CopyBackupMetadata
impl Default for CopyBackupMetadata
Source§fn default() -> CopyBackupMetadata
fn default() -> CopyBackupMetadata
Source§impl Message for CopyBackupMetadata
impl Message for CopyBackupMetadata
Source§impl PartialEq for CopyBackupMetadata
impl PartialEq for CopyBackupMetadata
impl StructuralPartialEq for CopyBackupMetadata
Auto Trait Implementations§
impl Freeze for CopyBackupMetadata
impl RefUnwindSafe for CopyBackupMetadata
impl Send for CopyBackupMetadata
impl Sync for CopyBackupMetadata
impl Unpin for CopyBackupMetadata
impl UnsafeUnpin for CopyBackupMetadata
impl UnwindSafe for CopyBackupMetadata
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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