pub struct SearchRequest<'a> {
pub collection: &'a str,
pub vector: &'a [f32],
pub limit: u64,
pub score_threshold: Option<f32>,
pub vector_name: Option<&'a str>,
pub with_vectors: bool,
}Expand description
Common search request fields shared by all search encoders.
Fields§
§collection: &'a str§vector: &'a [f32]§limit: u64§score_threshold: Option<f32>§vector_name: Option<&'a str>§with_vectors: boolTrait Implementations§
Source§impl<'a> Clone for SearchRequest<'a>
impl<'a> Clone for SearchRequest<'a>
Source§fn clone(&self) -> SearchRequest<'a>
fn clone(&self) -> SearchRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SearchRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for SearchRequest<'a>
impl<'a> RefUnwindSafe for SearchRequest<'a>
impl<'a> Send for SearchRequest<'a>
impl<'a> Sync for SearchRequest<'a>
impl<'a> Unpin for SearchRequest<'a>
impl<'a> UnsafeUnpin for SearchRequest<'a>
impl<'a> UnwindSafe for SearchRequest<'a>
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