#[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
pub fn new() -> Self
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("example");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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more