Struct google_api_proto::google::firestore::admin::v1::RestoreDatabaseRequest
source · pub struct RestoreDatabaseRequest {
pub parent: String,
pub database_id: String,
pub backup: String,
}
Expand description
The request message for [FirestoreAdmin.RestoreDatabase][google.firestore.admin.v1.RestoreDatabase].
Fields§
§parent: String
Required. The project to restore the database in. Format is
projects/{project_id}
.
database_id: String
Required. The ID to use for the database, which will become the final component of the database’s resource name. This database id must not be associated with an existing database.
This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
“(default)” database id is also valid.
backup: String
Required. Backup to restore from. Must be from the same project as the parent.
Format is: projects/{project_id}/locations/{location}/backups/{backup}
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§impl Message for RestoreDatabaseRequest
impl Message for RestoreDatabaseRequest
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 RestoreDatabaseRequest
impl PartialEq for RestoreDatabaseRequest
source§fn eq(&self, other: &RestoreDatabaseRequest) -> bool
fn eq(&self, other: &RestoreDatabaseRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§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