pub struct RestoreDatabaseRequest {
pub backup: Option<String>,
pub database_id: Option<String>,
pub encryption_config: Option<RestoreDatabaseEncryptionConfig>,
}
Expand description
The request for RestoreDatabase.
§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 databases restore projects (request)
Fields§
§backup: Option<String>
Name of the backup from which to restore. Values are of the form projects//instances//backups/
.
database_id: Option<String>
Required. The id of the database to create and restore to. This database must not already exist. The database_id
appended to parent
forms the full database name of the form projects//instances//databases/
.
encryption_config: Option<RestoreDatabaseEncryptionConfig>
Optional. An encryption configuration describing the encryption type and key resources in Cloud KMS used to encrypt/decrypt the database to restore to. If this field is not specified, the restored database will use the same encryption configuration as the backup by default, namely encryption_type = USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION
.
Trait Implementations§
Source§impl Clone for RestoreDatabaseRequest
impl Clone for RestoreDatabaseRequest
Source§fn clone(&self) -> RestoreDatabaseRequest
fn clone(&self) -> RestoreDatabaseRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RestoreDatabaseRequest
impl Debug for RestoreDatabaseRequest
Source§impl Default for RestoreDatabaseRequest
impl Default for RestoreDatabaseRequest
Source§fn default() -> RestoreDatabaseRequest
fn default() -> RestoreDatabaseRequest
Source§impl<'de> Deserialize<'de> for RestoreDatabaseRequest
impl<'de> Deserialize<'de> for RestoreDatabaseRequest
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 RestoreDatabaseRequest
impl Serialize for RestoreDatabaseRequest
impl RequestValue for RestoreDatabaseRequest
Auto Trait Implementations§
impl Freeze for RestoreDatabaseRequest
impl RefUnwindSafe for RestoreDatabaseRequest
impl Send for RestoreDatabaseRequest
impl Sync for RestoreDatabaseRequest
impl Unpin for RestoreDatabaseRequest
impl UnwindSafe for RestoreDatabaseRequest
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