[][src]Enum gluesql::data::Value

pub enum Value {
    Bool(bool),
    I64(i64),
    F64(f64),
    Str(String),
    OptBool(Option<bool>),
    OptI64(Option<i64>),
    OptF64(Option<f64>),
    OptStr(Option<String>),
    Empty,
}

Variants

Bool(bool)
I64(i64)
F64(f64)
Str(String)
OptBool(Option<bool>)
OptI64(Option<i64>)
OptF64(Option<f64>)
OptStr(Option<String>)
Empty

Implementations

impl Value[src]

pub fn from_expr(
    data_type: &DataType,
    nullable: bool,
    expr: &Expr
) -> Result<Self>
[src]

pub fn from_data_type(
    data_type: &DataType,
    nullable: bool,
    literal: &AstValue
) -> Result<Self>
[src]

pub fn clone_by(&self, literal: &AstValue) -> Result<Self>[src]

pub fn add(&self, other: &Value) -> Result<Value>[src]

pub fn subtract(&self, other: &Value) -> Result<Value>[src]

pub fn multiply(&self, other: &Value) -> Result<Value>[src]

pub fn divide(&self, other: &Value) -> Result<Value>[src]

pub fn is_some(&self) -> bool[src]

pub fn unary_plus(&self) -> Result<Value>[src]

pub fn unary_minus(&self) -> Result<Value>[src]

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl<'de> Deserialize<'de> for Value[src]

impl PartialEq<Value> for Value[src]

impl PartialEq<Value> for Value[src]

impl PartialOrd<Value> for Value[src]

impl PartialOrd<Value> for Value[src]

impl Serialize for Value[src]

impl<'_> TryFrom<&'_ Value> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryInto<GroupKey> for &'_ Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryInto<GroupKey> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.