pub struct PrefetchQuery {
pub prefetch: Vec<PrefetchQuery>,
pub query: Option<Query>,
pub using: Option<String>,
pub filter: Option<Filter>,
pub params: Option<SearchParams>,
pub score_threshold: Option<f32>,
pub limit: Option<u64>,
pub lookup_from: Option<LookupLocation>,
}
Fields§
§prefetch: Vec<PrefetchQuery>
Sub-requests to perform first. If present, the query will be performed on the results of the prefetches.
query: Option<Query>
Query to perform. If missing, returns points ordered by their IDs.
using: Option<String>
Define which vector to use for querying. If missing, the default vector is is used.
filter: Option<Filter>
Filter conditions - return only those points that satisfy the specified conditions.
params: Option<SearchParams>
Search params for when there is no prefetch.
score_threshold: Option<f32>
Return points with scores better than this threshold.
limit: Option<u64>
Max number of points. Default is 10
lookup_from: Option<LookupLocation>
The location to use for IDs lookup, if not specified - use the current collection and the ‘using’ vector
Implementations§
source§impl PrefetchQuery
impl PrefetchQuery
Trait Implementations§
source§impl Clone for PrefetchQuery
impl Clone for PrefetchQuery
source§fn clone(&self) -> PrefetchQuery
fn clone(&self) -> PrefetchQuery
Returns a copy 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 Debug for PrefetchQuery
impl Debug for PrefetchQuery
source§impl Default for PrefetchQuery
impl Default for PrefetchQuery
source§impl From<PrefetchQueryBuilder> for PrefetchQuery
impl From<PrefetchQueryBuilder> for PrefetchQuery
source§fn from(value: PrefetchQueryBuilder) -> Self
fn from(value: PrefetchQueryBuilder) -> Self
Converts to this type from the input type.
source§impl Message for PrefetchQuery
impl Message for PrefetchQuery
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for PrefetchQuery
impl PartialEq for PrefetchQuery
impl StructuralPartialEq for PrefetchQuery
Auto Trait Implementations§
impl Freeze for PrefetchQuery
impl RefUnwindSafe for PrefetchQuery
impl Send for PrefetchQuery
impl Sync for PrefetchQuery
impl Unpin for PrefetchQuery
impl UnwindSafe for PrefetchQuery
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