pub struct AnnSearch {
pub field_name: Option<String>,
pub document_ids: Option<Vec<String>>,
pub data: Option<Vec<Vec<f64>>>,
pub params: Option<SearchParams>,
pub limit: Option<u32>,
}Fields§
§field_name: Option<String>§document_ids: Option<Vec<String>>§data: Option<Vec<Vec<f64>>>§params: Option<SearchParams>§limit: Option<u32>Implementations§
Source§impl AnnSearch
impl AnnSearch
pub fn new() -> Self
pub fn with_field_name(self, field_name: impl Into<String>) -> Self
pub fn with_document_ids(self, document_ids: Vec<String>) -> Self
pub fn with_data(self, data: Vec<Vec<f64>>) -> Self
pub fn with_params(self, params: SearchParams) -> Self
pub fn with_limit(self, limit: u32) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AnnSearch
impl<'de> Deserialize<'de> for AnnSearch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AnnSearch
impl RefUnwindSafe for AnnSearch
impl Send for AnnSearch
impl Sync for AnnSearch
impl Unpin for AnnSearch
impl UnwindSafe for AnnSearch
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