pub struct QueryBase {
pub boost: Option<f64>,
pub name: Option<String>,
}Fields§
§boost: Option<f64>Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score.
name: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryBase
impl<'de> Deserialize<'de> for QueryBase
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 QueryBase
Auto Trait Implementations§
impl Freeze for QueryBase
impl RefUnwindSafe for QueryBase
impl Send for QueryBase
impl Sync for QueryBase
impl Unpin for QueryBase
impl UnsafeUnpin for QueryBase
impl UnwindSafe for QueryBase
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