pub struct RankingOptions {
pub ranker: Option<Ranker>,
pub score_threshold: Option<f32>,
}
Expand description
Ranking options for search.
Fields§
§ranker: Option<Ranker>
§score_threshold: Option<f32>
Trait Implementations§
Source§impl Clone for RankingOptions
impl Clone for RankingOptions
Source§fn clone(&self) -> RankingOptions
fn clone(&self) -> RankingOptions
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 moreSource§impl Debug for RankingOptions
impl Debug for RankingOptions
Source§impl Default for RankingOptions
impl Default for RankingOptions
Source§fn default() -> RankingOptions
fn default() -> RankingOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RankingOptions
impl<'de> Deserialize<'de> for RankingOptions
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
Source§impl PartialEq for RankingOptions
impl PartialEq for RankingOptions
Source§impl Serialize for RankingOptions
impl Serialize for RankingOptions
impl StructuralPartialEq for RankingOptions
Auto Trait Implementations§
impl Freeze for RankingOptions
impl RefUnwindSafe for RankingOptions
impl Send for RankingOptions
impl Sync for RankingOptions
impl Unpin for RankingOptions
impl UnwindSafe for RankingOptions
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