Struct google_api_proto::google::firestore::v1::ListDocumentsRequest
source · pub struct ListDocumentsRequest {
pub parent: String,
pub collection_id: String,
pub page_size: i32,
pub page_token: String,
pub order_by: String,
pub mask: Option<DocumentMask>,
pub show_missing: bool,
pub consistency_selector: Option<ConsistencySelector>,
}
Expand description
The request for [Firestore.ListDocuments][google.firestore.v1.Firestore.ListDocuments].
Fields§
§parent: String
Required. The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documents
or
projects/{project_id}/databases/{database_id}/documents/{document_path}
.
For example:
projects/my-project/databases/my-database/documents
or
projects/my-project/databases/my-database/documents/chatrooms/my-chatroom
collection_id: String
Optional. The collection ID, relative to parent
, to list.
For example: chatrooms
or messages
.
This is optional, and when not provided, Firestore will list documents
from all collections under the provided parent
.
page_size: i32
Optional. The maximum number of documents to return in a single response.
Firestore may return fewer than this value.
page_token: String
Optional. A page token, received from a previous ListDocuments
response.
Provide this to retrieve the subsequent page. When paginating, all other
parameters (with the exception of page_size
) must match the values set
in the request that generated the page token.
order_by: String
Optional. The optional ordering of the documents to return.
For example: priority desc, __name__ desc
.
This mirrors the [ORDER BY
][google.firestore.v1.StructuredQuery.order_by]
used in Firestore queries but in a string representation. When absent,
documents are ordered based on __name__ ASC
.
mask: Option<DocumentMask>
Optional. The fields to return. If not set, returns all fields.
If a document has a field that is not present in this mask, that field will not be returned in the response.
show_missing: bool
If the list should show missing documents.
A document is missing if it does not exist, but there are sub-documents
nested underneath it. When true, such missing documents will be returned
with a key but will not have fields,
[create_time
][google.firestore.v1.Document.create_time], or
[update_time
][google.firestore.v1.Document.update_time] set.
Requests with show_missing
may not specify where
or order_by
.
consistency_selector: Option<ConsistencySelector>
The consistency mode for this transaction. If not set, defaults to strong consistency.
Trait Implementations§
source§impl Clone for ListDocumentsRequest
impl Clone for ListDocumentsRequest
source§fn clone(&self) -> ListDocumentsRequest
fn clone(&self) -> ListDocumentsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListDocumentsRequest
impl Debug for ListDocumentsRequest
source§impl Default for ListDocumentsRequest
impl Default for ListDocumentsRequest
source§impl Message for ListDocumentsRequest
impl Message for ListDocumentsRequest
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 ListDocumentsRequest
impl PartialEq for ListDocumentsRequest
source§fn eq(&self, other: &ListDocumentsRequest) -> bool
fn eq(&self, other: &ListDocumentsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListDocumentsRequest
Auto Trait Implementations§
impl !Freeze for ListDocumentsRequest
impl RefUnwindSafe for ListDocumentsRequest
impl Send for ListDocumentsRequest
impl Sync for ListDocumentsRequest
impl Unpin for ListDocumentsRequest
impl UnwindSafe for ListDocumentsRequest
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