pub enum FacetValue {
String(String),
Number(OrderedFloat<f64>),
}Variants§
String(String)
Number(OrderedFloat<f64>)
Trait Implementations§
Source§impl Clone for FacetValue
impl Clone for FacetValue
Source§fn clone(&self) -> FacetValue
fn clone(&self) -> FacetValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FacetValue
impl Debug for FacetValue
Source§impl From<&str> for FacetValue
impl From<&str> for FacetValue
Source§fn from(string: &str) -> FacetValue
fn from(string: &str) -> FacetValue
Converts to this type from the input type.
Source§impl From<OrderedFloat<f64>> for FacetValue
impl From<OrderedFloat<f64>> for FacetValue
Source§fn from(float: OrderedFloat<f64>) -> FacetValue
fn from(float: OrderedFloat<f64>) -> FacetValue
Converts to this type from the input type.
Source§impl From<String> for FacetValue
impl From<String> for FacetValue
Source§fn from(string: String) -> FacetValue
fn from(string: String) -> FacetValue
Converts to this type from the input type.
Source§impl From<f64> for FacetValue
impl From<f64> for FacetValue
Source§fn from(float: f64) -> FacetValue
fn from(float: f64) -> FacetValue
Converts to this type from the input type.
Source§impl From<i64> for FacetValue
impl From<i64> for FacetValue
Source§fn from(integer: i64) -> FacetValue
fn from(integer: i64) -> FacetValue
Converts to this type from the input type.
Source§impl Hash for FacetValue
impl Hash for FacetValue
Source§impl Ord for FacetValue
impl Ord for FacetValue
Source§fn cmp(&self, other: &FacetValue) -> Ordering
fn cmp(&self, other: &FacetValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FacetValue
impl PartialEq for FacetValue
Source§impl PartialOrd for FacetValue
impl PartialOrd for FacetValue
Source§impl Serialize for FacetValue
We implement Serialize ourselves because we need to always serialize it as a string,
JSON object keys must be strings not numbers.
impl Serialize for FacetValue
We implement Serialize ourselves because we need to always serialize it as a string, JSON object keys must be strings not numbers.
impl Eq for FacetValue
impl StructuralPartialEq for FacetValue
Auto Trait Implementations§
impl Freeze for FacetValue
impl RefUnwindSafe for FacetValue
impl Send for FacetValue
impl Sync for FacetValue
impl Unpin for FacetValue
impl UnwindSafe for FacetValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more