Struct google_api_proto::google::firestore::admin::v1::ImportDocumentsRequest
source · pub struct ImportDocumentsRequest {
pub name: String,
pub collection_ids: Vec<String>,
pub input_uri_prefix: String,
pub namespace_ids: Vec<String>,
}
Expand description
The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
Fields§
§name: String
Required. Database to import into. Should be of the form:
projects/{project_id}/databases/{database_id}
.
collection_ids: Vec<String>
Which collection ids to import. Unspecified means all collections included in the import. Each collection id in this list must be unique.
input_uri_prefix: String
Location of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
namespace_ids: Vec<String>
An empty list represents all namespaces. This is the preferred usage for databases that don’t use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn’t want to include them. Each namespace in this list must be unique.
Trait Implementations§
source§impl Clone for ImportDocumentsRequest
impl Clone for ImportDocumentsRequest
source§fn clone(&self) -> ImportDocumentsRequest
fn clone(&self) -> ImportDocumentsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportDocumentsRequest
impl Debug for ImportDocumentsRequest
source§impl Default for ImportDocumentsRequest
impl Default for ImportDocumentsRequest
source§impl Message for ImportDocumentsRequest
impl Message for ImportDocumentsRequest
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 ImportDocumentsRequest
impl PartialEq for ImportDocumentsRequest
source§fn eq(&self, other: &ImportDocumentsRequest) -> bool
fn eq(&self, other: &ImportDocumentsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportDocumentsRequest
Auto Trait Implementations§
impl Freeze for ImportDocumentsRequest
impl RefUnwindSafe for ImportDocumentsRequest
impl Send for ImportDocumentsRequest
impl Sync for ImportDocumentsRequest
impl Unpin for ImportDocumentsRequest
impl UnwindSafe for ImportDocumentsRequest
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