#[non_exhaustive]pub struct CopyBackupRequest {
pub parent: String,
pub backup_id: String,
pub source_backup: String,
pub expire_time: Option<Timestamp>,
/* private fields */
}Expand description
The request for 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.parent: StringRequired. The name of the destination cluster that will contain the backup
copy. The cluster must already exist. Values are of the form:
projects/{project}/instances/{instance}/clusters/{cluster}.
backup_id: StringRequired. The id of the new backup. The backup_id along with parent
are combined as {parent}/backups/{backup_id} to create the full backup
name, of the form:
projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}.
This string must be between 1 and 50 characters in length and match the
regex [a-zA-Z0-9][-.a-zA-Z0-9]*.
source_backup: StringRequired. The source backup to be copied from.
The source backup needs to be in READY state for it to be copied.
Copying a copied backup is not allowed.
Once CopyBackup is in progress, the source backup cannot be deleted or
cleaned up on expiration until CopyBackup is finished.
Values are of the form:
projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>.
expire_time: Option<Timestamp>Required. Required. The expiration time of the copied backup with
microsecond granularity that must be at least 6 hours and at most 30 days
from the time the request is received. Once the expire_time has
passed, Cloud Bigtable will delete the backup and free the resources used
by the backup.
Implementations§
Source§impl CopyBackupRequest
impl CopyBackupRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_backup_id<T: Into<String>>(self, v: T) -> Self
pub fn set_backup_id<T: Into<String>>(self, v: T) -> 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 = CopyBackupRequest::new().set_source_backup(format!("projects/{project_id}/instances/{instance_id}/clusters/{cluster_id}/backups/{backup_id}"));Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
§Example
use wkt::Timestamp;
let x = CopyBackupRequest::new().set_expire_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
§Example
use wkt::Timestamp;
let x = CopyBackupRequest::new().set_or_clear_expire_time(Some(Timestamp::default()/* use setters */));
let x = CopyBackupRequest::new().set_or_clear_expire_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for CopyBackupRequest
impl Clone for CopyBackupRequest
Source§fn clone(&self) -> CopyBackupRequest
fn clone(&self) -> CopyBackupRequest
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 CopyBackupRequest
impl Debug for CopyBackupRequest
Source§impl Default for CopyBackupRequest
impl Default for CopyBackupRequest
Source§fn default() -> CopyBackupRequest
fn default() -> CopyBackupRequest
Source§impl Message for CopyBackupRequest
impl Message for CopyBackupRequest
Source§impl PartialEq for CopyBackupRequest
impl PartialEq for CopyBackupRequest
impl StructuralPartialEq for CopyBackupRequest
Auto Trait Implementations§
impl Freeze for CopyBackupRequest
impl RefUnwindSafe for CopyBackupRequest
impl Send for CopyBackupRequest
impl Sync for CopyBackupRequest
impl Unpin for CopyBackupRequest
impl UnsafeUnpin for CopyBackupRequest
impl UnwindSafe for CopyBackupRequest
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