Struct elasticsearch_dsl::search::queries::params::NegativeBoost
source · [−]pub struct NegativeBoost(_);Expand description
A container type for boost values
Implementations
sourceimpl NegativeBoost
impl NegativeBoost
sourcepub fn new(boost: f32) -> Self
pub fn new(boost: f32) -> Self
Creates a new instance of a negative boost value
Floating point number between 0 and 1.0 used to decrease the
relevance scores
of documents matching the negative query.
Trait Implementations
sourceimpl Clone for NegativeBoost
impl Clone for NegativeBoost
sourcefn clone(&self) -> NegativeBoost
fn clone(&self) -> NegativeBoost
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for NegativeBoost
impl Debug for NegativeBoost
sourceimpl Display for NegativeBoost
impl Display for NegativeBoost
sourceimpl From<f32> for NegativeBoost
impl From<f32> for NegativeBoost
sourceimpl From<i32> for NegativeBoost
impl From<i32> for NegativeBoost
sourceimpl PartialEq<NegativeBoost> for NegativeBoost
impl PartialEq<NegativeBoost> for NegativeBoost
sourcefn eq(&self, other: &NegativeBoost) -> bool
fn eq(&self, other: &NegativeBoost) -> bool
sourceimpl PartialOrd<NegativeBoost> for NegativeBoost
impl PartialOrd<NegativeBoost> for NegativeBoost
sourcefn partial_cmp(&self, other: &NegativeBoost) -> Option<Ordering>
fn partial_cmp(&self, other: &NegativeBoost) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl Serialize for NegativeBoost
impl Serialize for NegativeBoost
impl Copy for NegativeBoost
impl StructuralPartialEq for NegativeBoost
Auto Trait Implementations
impl RefUnwindSafe for NegativeBoost
impl Send for NegativeBoost
impl Sync for NegativeBoost
impl Unpin for NegativeBoost
impl UnwindSafe for NegativeBoost
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more