pub struct PartitionQueryRequest {
pub page_size: Option<i32>,
pub page_token: Option<String>,
pub partition_count: Option<i64>,
pub read_time: Option<DateTime<Utc>>,
pub structured_query: Option<StructuredQuery>,
}
Expand description
The request for Firestore.PartitionQuery.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§page_size: Option<i32>
The maximum number of partitions to return in this call, subject to partition_count
. For example, if partition_count
= 10 and page_size
= 8, the first call to PartitionQuery will return up to 8 partitions and a next_page_token
if more results exist. A second call to PartitionQuery will return up to 2 partitions, to complete the total of 10 specified in partition_count
.
page_token: Option<String>
The next_page_token
value returned from a previous call to PartitionQuery that may be used to get an additional set of results. There are no ordering guarantees between sets of results. Thus, using multiple sets of results will require merging the different result sets. For example, two subsequent calls using a page_token may return: * cursor B, cursor M, cursor Q * cursor A, cursor U, cursor W To obtain a complete result set ordered with respect to the results of the query supplied to PartitionQuery, the results sets should be merged: cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
partition_count: Option<i64>
The desired maximum number of partition points. The partitions may be returned across multiple pages of results. The number must be positive. The actual number of partitions returned may be fewer. For example, this may be set to one fewer than the number of parallel queries to be run, or in running a data pipeline job, one fewer than the number of workers or compute instances available.
read_time: Option<DateTime<Utc>>
Reads documents as they were at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
structured_query: Option<StructuredQuery>
A structured query. Query must specify collection with all descendants and be ordered by name ascending. Other filters, order bys, limits, offsets, and start/end cursors are not supported.
Trait Implementations§
Source§impl Clone for PartitionQueryRequest
impl Clone for PartitionQueryRequest
Source§fn clone(&self) -> PartitionQueryRequest
fn clone(&self) -> PartitionQueryRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PartitionQueryRequest
impl Debug for PartitionQueryRequest
Source§impl Default for PartitionQueryRequest
impl Default for PartitionQueryRequest
Source§fn default() -> PartitionQueryRequest
fn default() -> PartitionQueryRequest
Source§impl<'de> Deserialize<'de> for PartitionQueryRequest
impl<'de> Deserialize<'de> for PartitionQueryRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for PartitionQueryRequest
impl Serialize for PartitionQueryRequest
impl RequestValue for PartitionQueryRequest
Auto Trait Implementations§
impl Freeze for PartitionQueryRequest
impl RefUnwindSafe for PartitionQueryRequest
impl Send for PartitionQueryRequest
impl Sync for PartitionQueryRequest
impl Unpin for PartitionQueryRequest
impl UnwindSafe for PartitionQueryRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more