pub enum Value {
Show 18 variants
Bool(ValueBool),
TinyInt(ValueTinyInt),
SmallInt(ValueSmallInt),
Int(ValueInt),
BigInt(ValueBigInt),
TinyUnsigned(ValueTinyUnsigned),
SmallUnsigned(ValueSmallUnsigned),
Unsigned(ValueUnsigned),
Float(ValueFloat),
Double(ValueDouble),
String(ValueString),
Bytes(ValueBytes),
Array(ValueArray),
Json(ValueJson),
ChronoTimestamp(ValueChronoTimestamp),
ChronoDateTime(ValueChronoDateTime),
ChronoDate(ValueChronoDate),
ChronoTime(ValueChronoTime),
}Variants§
Bool(ValueBool)
TinyInt(ValueTinyInt)
SmallInt(ValueSmallInt)
Int(ValueInt)
BigInt(ValueBigInt)
TinyUnsigned(ValueTinyUnsigned)
SmallUnsigned(ValueSmallUnsigned)
Unsigned(ValueUnsigned)
Float(ValueFloat)
Double(ValueDouble)
String(ValueString)
Bytes(ValueBytes)
Array(ValueArray)
Json(ValueJson)
ChronoTimestamp(ValueChronoTimestamp)
ChronoDateTime(ValueChronoDateTime)
ChronoDate(ValueChronoDate)
ChronoTime(ValueChronoTime)
Implementations§
Trait Implementations§
source§impl<T> Add<T> for Value
impl<T> Add<T> for Value
Examples
use arel::prelude::*;
let sub_v1: arel::sub_value::ValueInt = 1.into();
let sub_v2: arel::sub_value::ValueInt = 2.into();
let v1: arel::Value = sub_v1.into();
let v2: arel::Value = sub_v2.into();
assert_eq!(v1 + v2, arel::Value::Int(3.into()));source§impl<T> AddAssign<T> for Value
impl<T> AddAssign<T> for Value
source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+= operation. Read moresource§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
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<T> Div<T> for Value
impl<T> Div<T> for Value
Examples
use arel::prelude::*;
let sub_v1: arel::sub_value::ValueInt = 1.into();
let sub_v2: arel::sub_value::ValueInt = 2.into();
let v1: arel::Value = sub_v1.into();
let v2: arel::Value = sub_v2.into();
assert_eq!(v1 + v2, arel::Value::Int(3.into()));source§impl<T> DivAssign<T> for Value
impl<T> DivAssign<T> for Value
source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/= operation. Read moresource§impl From<DateTime<FixedOffset>> for Value
impl From<DateTime<FixedOffset>> for Value
source§fn from(val: DateTime<FixedOffset>) -> Self
fn from(val: DateTime<FixedOffset>) -> Self
Converts to this type from the input type.
source§impl From<NaiveDateTime> for Value
impl From<NaiveDateTime> for Value
source§fn from(val: NaiveDateTime) -> Self
fn from(val: NaiveDateTime) -> Self
Converts to this type from the input type.
source§impl From<ValueArray> for Value
impl From<ValueArray> for Value
source§fn from(vals: ValueArray) -> Self
fn from(vals: ValueArray) -> Self
Converts to this type from the input type.
source§impl From<ValueBigInt> for Value
impl From<ValueBigInt> for Value
source§fn from(val: ValueBigInt) -> Self
fn from(val: ValueBigInt) -> Self
Converts to this type from the input type.
source§impl From<ValueBytes> for Value
impl From<ValueBytes> for Value
source§fn from(val: ValueBytes) -> Self
fn from(val: ValueBytes) -> Self
Converts to this type from the input type.
source§impl From<ValueChronoDate> for Value
impl From<ValueChronoDate> for Value
source§fn from(val: ValueChronoDate) -> Self
fn from(val: ValueChronoDate) -> Self
Converts to this type from the input type.
source§impl From<ValueChronoDateTime> for Value
impl From<ValueChronoDateTime> for Value
source§fn from(val: ValueChronoDateTime) -> Self
fn from(val: ValueChronoDateTime) -> Self
Converts to this type from the input type.
source§impl From<ValueChronoTime> for Value
impl From<ValueChronoTime> for Value
source§fn from(val: ValueChronoTime) -> Self
fn from(val: ValueChronoTime) -> Self
Converts to this type from the input type.
source§impl From<ValueChronoTimestamp> for Value
impl From<ValueChronoTimestamp> for Value
source§fn from(val: ValueChronoTimestamp) -> Self
fn from(val: ValueChronoTimestamp) -> Self
Converts to this type from the input type.
source§impl From<ValueDouble> for Value
impl From<ValueDouble> for Value
source§fn from(val: ValueDouble) -> Self
fn from(val: ValueDouble) -> Self
Converts to this type from the input type.
source§impl From<ValueFloat> for Value
impl From<ValueFloat> for Value
source§fn from(val: ValueFloat) -> Self
fn from(val: ValueFloat) -> Self
Converts to this type from the input type.
source§impl From<ValueSmallInt> for Value
impl From<ValueSmallInt> for Value
source§fn from(val: ValueSmallInt) -> Self
fn from(val: ValueSmallInt) -> Self
Converts to this type from the input type.
source§impl From<ValueSmallUnsigned> for Value
impl From<ValueSmallUnsigned> for Value
source§fn from(val: ValueSmallUnsigned) -> Self
fn from(val: ValueSmallUnsigned) -> Self
Converts to this type from the input type.
source§impl From<ValueString> for Value
impl From<ValueString> for Value
source§fn from(val: ValueString) -> Self
fn from(val: ValueString) -> Self
Converts to this type from the input type.
source§impl From<ValueTinyInt> for Value
impl From<ValueTinyInt> for Value
source§fn from(val: ValueTinyInt) -> Self
fn from(val: ValueTinyInt) -> Self
Converts to this type from the input type.
source§impl From<ValueTinyUnsigned> for Value
impl From<ValueTinyUnsigned> for Value
source§fn from(val: ValueTinyUnsigned) -> Self
fn from(val: ValueTinyUnsigned) -> Self
Converts to this type from the input type.
source§impl From<ValueUnsigned> for Value
impl From<ValueUnsigned> for Value
source§fn from(val: ValueUnsigned) -> Self
fn from(val: ValueUnsigned) -> Self
Converts to this type from the input type.
source§impl<T> Mul<T> for Value
impl<T> Mul<T> for Value
Examples
use arel::prelude::*;
let sub_v1: arel::sub_value::ValueInt = 1.into();
let sub_v2: arel::sub_value::ValueInt = 2.into();
let v1: arel::Value = sub_v1.into();
let v2: arel::Value = sub_v2.into();
assert_eq!(v1 + v2, arel::Value::Int(3.into()));source§impl<T> MulAssign<T> for Value
impl<T> MulAssign<T> for Value
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*= operation. Read moresource§impl<T> PartialEq<Option<T>> for Value
impl<T> PartialEq<Option<T>> for Value
Examples
Value
use arel::prelude::*;
let v1: arel::sub_value::ValueTinyInt = 1.into();
let value: arel::Value = v1.clone().into();
assert!(value == Some(&v1));
assert!(value == Some(v1));source§impl PartialEq for Value
impl PartialEq for Value
source§impl<T> Rem<T> for Value
impl<T> Rem<T> for Value
Examples
use arel::prelude::*;
let sub_v1: arel::sub_value::ValueInt = 1.into();
let sub_v2: arel::sub_value::ValueInt = 2.into();
let v1: arel::Value = sub_v1.into();
let v2: arel::Value = sub_v2.into();
assert_eq!(v1 + v2, arel::Value::Int(3.into()));source§impl<T> RemAssign<T> for Value
impl<T> RemAssign<T> for Value
source§fn rem_assign(&mut self, rhs: T)
fn rem_assign(&mut self, rhs: T)
Performs the
%= operation. Read moresource§impl<T> Sub<T> for Value
impl<T> Sub<T> for Value
Examples
use arel::prelude::*;
let sub_v1: arel::sub_value::ValueInt = 1.into();
let sub_v2: arel::sub_value::ValueInt = 2.into();
let v1: arel::Value = sub_v1.into();
let v2: arel::Value = sub_v2.into();
assert_eq!(v1 + v2, arel::Value::Int(3.into()));source§impl<T> SubAssign<T> for Value
impl<T> SubAssign<T> for Value
source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-= operation. Read moreimpl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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