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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NegativeBoost) -> bool
fn ne(&self, other: &NegativeBoost) -> bool
This method tests for !=
.
sourceimpl PartialEq<f32> for NegativeBoost
impl PartialEq<f32> for NegativeBoost
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
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 more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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