Struct google_api_proto::google::spanner::admin::database::v1::CreateBackupRequest
source · pub struct CreateBackupRequest {
pub parent: String,
pub backup_id: String,
pub backup: Option<Backup>,
pub encryption_config: Option<CreateBackupEncryptionConfig>,
}
Expand description
The request for [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].
Fields§
§parent: String
Required. The name of the instance in which the backup will be
created. This must be the same instance that contains the database the
backup will be created from. The backup will be stored in the
location(s) specified in the instance configuration of this
instance. Values are of the form
projects/<project>/instances/<instance>
.
backup_id: String
Required. The id of the backup to be created. The backup_id
appended to
parent
forms the full backup name of the form
projects/<project>/instances/<instance>/backups/<backup_id>
.
backup: Option<Backup>
Required. The backup to create.
encryption_config: Option<CreateBackupEncryptionConfig>
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 database by default, namely
[encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
= USE_DATABASE_ENCRYPTION
.
Trait Implementations§
source§impl Clone for CreateBackupRequest
impl Clone for CreateBackupRequest
source§fn clone(&self) -> CreateBackupRequest
fn clone(&self) -> CreateBackupRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateBackupRequest
impl Debug for CreateBackupRequest
source§impl Default for CreateBackupRequest
impl Default for CreateBackupRequest
source§impl Message for CreateBackupRequest
impl Message for CreateBackupRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CreateBackupRequest
impl PartialEq for CreateBackupRequest
source§fn eq(&self, other: &CreateBackupRequest) -> bool
fn eq(&self, other: &CreateBackupRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateBackupRequest
Auto Trait Implementations§
impl Freeze for CreateBackupRequest
impl RefUnwindSafe for CreateBackupRequest
impl Send for CreateBackupRequest
impl Sync for CreateBackupRequest
impl Unpin for CreateBackupRequest
impl UnwindSafe for CreateBackupRequest
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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