pub struct CopyBackupRequest {
pub backup_id: Option<String>,
pub encryption_config: Option<CopyBackupEncryptionConfig>,
pub expire_time: Option<DateTime<Utc>>,
pub source_backup: Option<String>,
}
Expand description
The request for CopyBackup.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- instances backups copy projects (request)
Fields§
§backup_id: Option<String>
Required. The id of the backup copy. The backup_id
appended to parent
forms the full backup_uri of the form projects//instances//backups/
.
encryption_config: Option<CopyBackupEncryptionConfig>
Optional. The encryption configuration used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the source backup by default, namely encryption_type = USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION
.
expire_time: Option<DateTime<Utc>>
Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the create_time
of the source backup. Once the expire_time
has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
source_backup: Option<String>
Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. 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//instances//backups/
.
Trait Implementations§
Source§impl Clone for CopyBackupRequest
impl Clone for CopyBackupRequest
Source§fn clone(&self) -> CopyBackupRequest
fn clone(&self) -> CopyBackupRequest
1.0.0 · 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<'de> Deserialize<'de> for CopyBackupRequest
impl<'de> Deserialize<'de> for CopyBackupRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for CopyBackupRequest
impl Serialize for CopyBackupRequest
impl RequestValue 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more