pub struct FacetCountsBuilder { /* private fields */ }
Expand description
Builder for FacetCounts
.
Implementations§
source§impl FacetCountsBuilder
impl FacetCountsBuilder
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 counts, slower but useful for debugging purposes. Default is false.
sourcepub fn timeout(self, value: u64) -> Self
pub fn timeout(self, value: u64) -> Self
If set, overrides global timeout setting for this request. Unit is seconds.
sourcepub fn read_consistency<VALUE: Into<ReadConsistency>>(
self,
value: VALUE,
) -> Self
pub fn read_consistency<VALUE: Into<ReadConsistency>>( 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 FacetCountsBuilder
impl FacetCountsBuilder
sourcepub fn build(self) -> FacetCounts
pub fn build(self) -> FacetCounts
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl From<FacetCountsBuilder> for FacetCounts
impl From<FacetCountsBuilder> for FacetCounts
source§fn from(value: FacetCountsBuilder) -> Self
fn from(value: FacetCountsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FacetCountsBuilder
impl RefUnwindSafe for FacetCountsBuilder
impl Send for FacetCountsBuilder
impl Sync for FacetCountsBuilder
impl Unpin for FacetCountsBuilder
impl UnwindSafe for FacetCountsBuilder
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