pub struct RankingWeights {
pub relevance: f32,
pub frequency: f32,
pub recency: f32,
}Expand description
Ranking weights for completion scoring
Fields§
§relevance: f32§frequency: f32§recency: f32Trait Implementations§
Source§impl Clone for RankingWeights
impl Clone for RankingWeights
Source§fn clone(&self) -> RankingWeights
fn clone(&self) -> RankingWeights
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 RankingWeights
impl Debug for RankingWeights
Source§impl Default for RankingWeights
impl Default for RankingWeights
Source§impl<'de> Deserialize<'de> for RankingWeights
impl<'de> Deserialize<'de> for RankingWeights
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 RankingWeights
impl RefUnwindSafe for RankingWeights
impl Send for RankingWeights
impl Sync for RankingWeights
impl Unpin for RankingWeights
impl UnwindSafe for RankingWeights
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