pub struct CountPointsBuilder { /* private fields */ }
Expand description
Builder for CountPoints
.
Implementations§
source§impl CountPointsBuilder
impl CountPointsBuilder
sourcepub fn collection_name(self, value: String) -> Self
pub fn collection_name(self, value: String) -> Self
Name of the collection
sourcepub fn filter<VALUE: Into<Filter>>(self, value: VALUE) -> Self
pub fn filter<VALUE: Into<Filter>>(self, value: VALUE) -> Self
Filter conditions - return only those points that satisfy the specified conditions
sourcepub fn exact(self, value: bool) -> Self
pub fn exact(self, value: bool) -> Self
If true
- return exact count, if false
- return approximate count
sourcepub fn read_consistency<VALUE: Into<Value>>(self, value: VALUE) -> Self
pub fn read_consistency<VALUE: Into<Value>>(self, value: VALUE) -> Self
Options for specifying read consistency guarantees
sourcepub fn shard_key_selector<VALUE: Into<ShardKeySelector>>(
self,
value: VALUE,
) -> Self
pub fn shard_key_selector<VALUE: Into<ShardKeySelector>>( self, value: VALUE, ) -> Self
Specify in which shards to look for the points, if not specified - look in all shards
source§impl CountPointsBuilder
impl CountPointsBuilder
sourcepub fn build(self) -> CountPoints
pub fn build(self) -> CountPoints
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl From<CountPointsBuilder> for CountPoints
impl From<CountPointsBuilder> for CountPoints
source§fn from(value: CountPointsBuilder) -> Self
fn from(value: CountPointsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CountPointsBuilder
impl RefUnwindSafe for CountPointsBuilder
impl Send for CountPointsBuilder
impl Sync for CountPointsBuilder
impl Unpin for CountPointsBuilder
impl UnwindSafe for CountPointsBuilder
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> 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