pub struct SearchMatrixPointsBuilder { /* private fields */ }
Expand description
Builder for SearchMatrixPoints
.
Implementations§
source§impl SearchMatrixPointsBuilder
impl SearchMatrixPointsBuilder
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 sample(self, value: u64) -> Self
pub fn sample(self, value: u64) -> Self
How many points to select and search within. Default is 10.
sourcepub fn using<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn using<VALUE: Into<String>>(self, value: VALUE) -> Self
Define which vector to use for querying. If missing, the default vector is is used.
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 SearchMatrixPointsBuilder
impl SearchMatrixPointsBuilder
sourcepub fn build(self) -> SearchMatrixPoints
pub fn build(self) -> SearchMatrixPoints
Builds the desired type. Can often be omitted.
source§impl SearchMatrixPointsBuilder
impl SearchMatrixPointsBuilder
pub fn new(collection_name: impl Into<String>) -> SearchMatrixPointsBuilder
Trait Implementations§
source§impl From<SearchMatrixPointsBuilder> for SearchMatrixPoints
impl From<SearchMatrixPointsBuilder> for SearchMatrixPoints
source§fn from(value: SearchMatrixPointsBuilder) -> Self
fn from(value: SearchMatrixPointsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SearchMatrixPointsBuilder
impl RefUnwindSafe for SearchMatrixPointsBuilder
impl Send for SearchMatrixPointsBuilder
impl Sync for SearchMatrixPointsBuilder
impl Unpin for SearchMatrixPointsBuilder
impl UnwindSafe for SearchMatrixPointsBuilder
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