pub enum QueryVariableValue {
Null,
Int(i64),
String(String),
Bool(bool),
Float(f64),
Decimal(Decimal),
Bytes(Vec<u8>),
DateTime(DateTime<Utc>),
Uuid(Uuid),
List(Vec<QueryVariableValue>),
}Variants§
Null
Int(i64)
String(String)
Bool(bool)
Float(f64)
Decimal(Decimal)
Bytes(Vec<u8>)
DateTime(DateTime<Utc>)
Uuid(Uuid)
List(Vec<QueryVariableValue>)
Trait Implementations§
Source§impl Clone for QueryVariableValue
impl Clone for QueryVariableValue
Source§fn clone(&self) -> QueryVariableValue
fn clone(&self) -> QueryVariableValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueryVariableValue
impl Debug for QueryVariableValue
Source§impl From<&[u8]> for QueryVariableValue
impl From<&[u8]> for QueryVariableValue
Source§fn from(value: &[u8]) -> QueryVariableValue
fn from(value: &[u8]) -> QueryVariableValue
Converts to this type from the input type.
Source§impl From<&str> for QueryVariableValue
impl From<&str> for QueryVariableValue
Source§fn from(value: &str) -> QueryVariableValue
fn from(value: &str) -> QueryVariableValue
Converts to this type from the input type.
Source§impl From<Decimal> for QueryVariableValue
impl From<Decimal> for QueryVariableValue
Source§fn from(value: Decimal) -> QueryVariableValue
fn from(value: Decimal) -> QueryVariableValue
Converts to this type from the input type.
Source§impl<T> From<Option<T>> for QueryVariableValuewhere
T: Into<QueryVariableValue>,
impl<T> From<Option<T>> for QueryVariableValuewhere
T: Into<QueryVariableValue>,
Source§fn from(value: Option<T>) -> QueryVariableValue
fn from(value: Option<T>) -> QueryVariableValue
Converts to this type from the input type.
Source§impl From<String> for QueryVariableValue
impl From<String> for QueryVariableValue
Source§fn from(value: String) -> QueryVariableValue
fn from(value: String) -> QueryVariableValue
Converts to this type from the input type.
Source§impl From<Uuid> for QueryVariableValue
impl From<Uuid> for QueryVariableValue
Source§fn from(value: Uuid) -> QueryVariableValue
fn from(value: Uuid) -> QueryVariableValue
Converts to this type from the input type.
Source§impl<T> From<Vec<T>> for QueryVariableValuewhere
T: QueryListScalar,
impl<T> From<Vec<T>> for QueryVariableValuewhere
T: QueryListScalar,
Source§fn from(values: Vec<T>) -> QueryVariableValue
fn from(values: Vec<T>) -> QueryVariableValue
Converts to this type from the input type.
Source§impl From<bool> for QueryVariableValue
impl From<bool> for QueryVariableValue
Source§fn from(value: bool) -> QueryVariableValue
fn from(value: bool) -> QueryVariableValue
Converts to this type from the input type.
Source§impl From<f64> for QueryVariableValue
impl From<f64> for QueryVariableValue
Source§fn from(value: f64) -> QueryVariableValue
fn from(value: f64) -> QueryVariableValue
Converts to this type from the input type.
Source§impl From<i64> for QueryVariableValue
impl From<i64> for QueryVariableValue
Source§fn from(value: i64) -> QueryVariableValue
fn from(value: i64) -> QueryVariableValue
Converts to this type from the input type.
Source§impl PartialEq for QueryVariableValue
impl PartialEq for QueryVariableValue
Source§fn eq(&self, other: &QueryVariableValue) -> bool
fn eq(&self, other: &QueryVariableValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryVariableValue
Auto Trait Implementations§
impl Freeze for QueryVariableValue
impl RefUnwindSafe for QueryVariableValue
impl Send for QueryVariableValue
impl Sync for QueryVariableValue
impl Unpin for QueryVariableValue
impl UnsafeUnpin for QueryVariableValue
impl UnwindSafe for QueryVariableValue
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