pub struct Boost {
pub field: Vec<String>,
pub equals: Option<String>,
pub weight: f64,
}Expand description
Multiply relevance by 1 + weight for records where any of field is
present (non-empty, not a placeholder) or, with equals, has that value.
Fields§
§field: Vec<String>§equals: Option<String>§weight: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Boost
impl<'de> Deserialize<'de> for Boost
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
impl StructuralPartialEq for Boost
Auto Trait Implementations§
impl Freeze for Boost
impl RefUnwindSafe for Boost
impl Send for Boost
impl Sync for Boost
impl Unpin for Boost
impl UnsafeUnpin for Boost
impl UnwindSafe for Boost
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