pub enum FinalType {
Number(Number),
String(String),
Bool(bool),
Null,
}
Expand description
Query final constraint value (ie “native” types) Prevents recursive lists of values
Variants§
Implementations§
Source§impl FinalType
Comparing 2 final types
impl FinalType
Comparing 2 final types
Sourcepub fn compare(&self, other: &FinalType, operator: &Operator) -> bool
pub fn compare(&self, other: &FinalType, operator: &Operator) -> bool
Compare self (left side) with another final type (right side) using an operator
Sourcepub fn greater_than(&self, other: &FinalType) -> bool
pub fn greater_than(&self, other: &FinalType) -> bool
&self > other
Sourcepub fn less_than_or_equal(&self, other: &FinalType) -> bool
pub fn less_than_or_equal(&self, other: &FinalType) -> bool
&self <= other
Sourcepub fn greater_than_or_equal(&self, other: &FinalType) -> bool
pub fn greater_than_or_equal(&self, other: &FinalType) -> bool
&self >= other
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FinalType
impl<'de> Deserialize<'de> for FinalType
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
Source§impl TryFrom<Value> for FinalType
For binding values to queries, JSON values must be converted to native types
in order to avoid cases such as double quotes enclosed strings.
impl TryFrom<Value> for FinalType
For binding values to queries, JSON values must be converted to native types in order to avoid cases such as double quotes enclosed strings.
impl StructuralPartialEq for FinalType
Auto Trait Implementations§
impl Freeze for FinalType
impl RefUnwindSafe for FinalType
impl Send for FinalType
impl Sync for FinalType
impl Unpin for FinalType
impl UnwindSafe for FinalType
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<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