pub struct FirestorePartitionQueryParams {
pub query_params: FirestoreQueryParams,
pub partition_count: u32,
pub page_size: u32,
pub page_token: Option<String>,
}Expand description
Parameters for a partitioned query.
Partitioned queries allow you to divide a large query into smaller, parallelizable chunks. This is useful for exporting data or performing large-scale data processing.
Fields§
§query_params: FirestoreQueryParamsThe base query parameters to partition.
partition_count: u32The desired number of partitions to return. Must be a positive integer.
page_size: u32The maximum number of partitions to return in this call, used for paging. Must be a positive integer.
page_token: Option<String>A page token from a previous PartitionQuery response to retrieve the next set of partitions.
Implementations§
Source§impl FirestorePartitionQueryParams
impl FirestorePartitionQueryParams
pub fn new( query_params: FirestoreQueryParams, partition_count: u32, page_size: u32, ) -> Self
pub fn query_params(&mut self, value: FirestoreQueryParams) -> &mut Self
pub fn with_query_params(self, value: FirestoreQueryParams) -> Self
pub fn partition_count(&mut self, value: u32) -> &mut Self
pub fn with_partition_count(self, value: u32) -> Self
pub fn page_size(&mut self, value: u32) -> &mut Self
pub fn with_page_size(self, value: u32) -> Self
pub fn page_token(&mut self, value: String) -> &mut Self
pub fn reset_page_token(&mut self) -> &mut Self
pub fn mopt_page_token(&mut self, value: Option<String>) -> &mut Self
pub fn with_page_token(self, value: String) -> Self
pub fn without_page_token(self) -> Self
pub fn opt_page_token(self, value: Option<String>) -> Self
Trait Implementations§
Source§impl Clone for FirestorePartitionQueryParams
impl Clone for FirestorePartitionQueryParams
Source§fn clone(&self) -> FirestorePartitionQueryParams
fn clone(&self) -> FirestorePartitionQueryParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<FirestorePartitionQueryParamsInit> for FirestorePartitionQueryParams
impl From<FirestorePartitionQueryParamsInit> for FirestorePartitionQueryParams
Source§fn from(value: FirestorePartitionQueryParamsInit) -> Self
fn from(value: FirestorePartitionQueryParamsInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FirestorePartitionQueryParams
impl PartialEq for FirestorePartitionQueryParams
Source§fn eq(&self, other: &FirestorePartitionQueryParams) -> bool
fn eq(&self, other: &FirestorePartitionQueryParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FirestorePartitionQueryParams
Auto Trait Implementations§
impl Freeze for FirestorePartitionQueryParams
impl RefUnwindSafe for FirestorePartitionQueryParams
impl Send for FirestorePartitionQueryParams
impl Sync for FirestorePartitionQueryParams
impl Unpin for FirestorePartitionQueryParams
impl UnwindSafe for FirestorePartitionQueryParams
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
Mutably borrows from an owned value. Read more
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request