pub enum Term {
Boolean(bool),
PositiveNumber(u64),
NegativeNumber(i64),
Float32(f32),
Float64(f64),
String(String),
}
Expand description
Elasticsearch term value
Variants
Boolean(bool)
Boolean value
PositiveNumber(u64)
Positive only integer number
NegativeNumber(i64)
Negative only integer number
Float32(f32)
32-bit floating point number, separate from 64-bit to not lose precision
Float64(f64)
64-bit floating point number, separate from 32-bit to not lose precision
String(String)
A string value
Implementations
Trait Implementations
sourceimpl PartialOrd<Term> for Term
impl PartialOrd<Term> for Term
sourcefn partial_cmp(&self, other: &Term) -> Option<Ordering>
fn partial_cmp(&self, other: &Term) -> 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
impl StructuralPartialEq for Term
Auto Trait Implementations
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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