pub struct FLATSearchParamsBuilder { /* private fields */ }Expand description
Builder for FLATSearchParams.
Implementations§
Source§impl FLATSearchParamsBuilder
impl FLATSearchParamsBuilder
pub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn distance_far<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn distance_far<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
the farthest distance in the range retrieval scenario
Sourcepub fn distance_near<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn distance_near<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
the nearest distance in the range retrieval scenario
Sourcepub fn build(&self) -> Result<FLATSearchParams, FLATSearchParamsBuilderError>
pub fn build(&self) -> Result<FLATSearchParams, FLATSearchParamsBuilderError>
Trait Implementations§
Source§impl Clone for FLATSearchParamsBuilder
impl Clone for FLATSearchParamsBuilder
Source§fn clone(&self) -> FLATSearchParamsBuilder
fn clone(&self) -> FLATSearchParamsBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FLATSearchParamsBuilder
impl RefUnwindSafe for FLATSearchParamsBuilder
impl Send for FLATSearchParamsBuilder
impl Sync for FLATSearchParamsBuilder
impl Unpin for FLATSearchParamsBuilder
impl UnwindSafe for FLATSearchParamsBuilder
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