Struct google_api_proto::google::firestore::admin::v1::ExportDocumentsRequest
source · pub struct ExportDocumentsRequest {
pub name: String,
pub collection_ids: Vec<String>,
pub output_uri_prefix: String,
pub namespace_ids: Vec<String>,
pub snapshot_time: Option<Timestamp>,
}
Expand description
The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
Fields§
§name: String
Required. Database to export. Should be of the form:
projects/{project_id}/databases/{database_id}
.
collection_ids: Vec<String>
Which collection ids to export. Unspecified means all collections. Each collection id in this list must be unique.
output_uri_prefix: String
The output URI. Currently only supports Google Cloud Storage URIs of the
form: gs://BUCKET_NAME\[/NAMESPACE_PATH\]
, where BUCKET_NAME
is the name
of the Google Cloud Storage bucket and NAMESPACE_PATH
is an optional
Google Cloud Storage namespace path. When
choosing a name, be sure to consider Google Cloud Storage naming
guidelines: https://cloud.google.com/storage/docs/naming.
If the URI is a bucket (without a namespace path), a prefix will be
generated based on the start time.
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.
snapshot_time: Option<Timestamp>
The timestamp that corresponds to the version of the database to be exported. The timestamp must be in the past, rounded to the minute and not older than [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time]. If specified, then the exported documents will represent a consistent view of the database at the provided time. Otherwise, there are no guarantees about the consistency of the exported documents.
Trait Implementations§
source§impl Clone for ExportDocumentsRequest
impl Clone for ExportDocumentsRequest
source§fn clone(&self) -> ExportDocumentsRequest
fn clone(&self) -> ExportDocumentsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExportDocumentsRequest
impl Debug for ExportDocumentsRequest
source§impl Default for ExportDocumentsRequest
impl Default for ExportDocumentsRequest
source§impl Message for ExportDocumentsRequest
impl Message for ExportDocumentsRequest
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 ExportDocumentsRequest
impl PartialEq for ExportDocumentsRequest
source§fn eq(&self, other: &ExportDocumentsRequest) -> bool
fn eq(&self, other: &ExportDocumentsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExportDocumentsRequest
Auto Trait Implementations§
impl Freeze for ExportDocumentsRequest
impl RefUnwindSafe for ExportDocumentsRequest
impl Send for ExportDocumentsRequest
impl Sync for ExportDocumentsRequest
impl Unpin for ExportDocumentsRequest
impl UnwindSafe for ExportDocumentsRequest
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