[]Enum c3p0_mysql::mysql::driver::Value

pub enum Value {
    NULL,
    Bytes(Vec<u8>),
    Int(i64),
    UInt(u64),
    Float(f64),
    Date(u16u8u8u8u8u8u32),
    Time(boolu32u8u8u8u32),
}

Client side representation of a value of MySql column.

The Value is also used as a parameter to a prepared statement.

Variants

NULL
Bytes(Vec<u8>)
Int(i64)
UInt(u64)
Float(f64)
Date(u16u8u8u8u8u8u32)

year, month, day, hour, minutes, seconds, micro seconds

Time(boolu32u8u8u8u32)

is negative, days, hours, minutes, seconds, micro seconds

Methods

impl Value

pub fn as_sql(&self, no_backslash_escape: bool) -> String

Trait Implementations

impl FromValue for Value

type Intermediate = Value

impl PartialEq<Value> for Value

impl Clone for Value

impl ConvIr<Value> for Value

impl PartialOrd<Value> for Value

impl From<[u8; 18]> for Value

impl<T> From<Option<T>> for Value where
    T: Into<Value>, 

impl From<[u8; 26]> for Value

impl From<[u8; 27]> for Value

impl From<Duration> for Value

impl From<u32> for Value

impl From<[u8; 13]> for Value

impl From<[u8; 4]> for Value

impl From<f32> for Value

impl From<[u8; 7]> for Value

impl From<Duration> for Value

impl From<i64> for Value

impl From<u8> for Value

impl From<u128> for Value

impl From<i16> for Value

impl From<[u8; 17]> for Value

impl From<[u8; 28]> for Value

impl From<[u8; 9]> for Value

impl From<Timespec> for Value

impl From<[u8; 11]> for Value

impl From<[u8; 14]> for Value

impl From<isize> for Value

impl From<bool> for Value

impl From<usize> for Value

impl From<i32> for Value

impl From<BigUint> for Value

impl From<Value> for Value

impl From<f64> for Value

impl From<[u8; 19]> for Value

impl<'a, T> From<&'a T> for Value where
    T: ToValue

impl From<BigInt> for Value

impl From<[u8; 6]> for Value

impl From<[u8; 21]> for Value

impl From<[u8; 10]> for Value

impl From<[u8; 30]> for Value

impl From<[u8; 32]> for Value

impl From<NaiveTime> for Value

impl From<[u8; 20]> for Value

impl From<Uuid> for Value

impl From<u16> for Value

impl From<[u8; 12]> for Value

impl<T> From<Serialized<T>> for Value where
    T: Serialize

impl From<[u8; 1]> for Value

impl From<i8> for Value

impl From<[u8; 25]> for Value

impl<'a> From<&'a [u8]> for Value

impl From<[u8; 15]> for Value

impl From<u64> for Value

impl From<[u8; 16]> for Value

impl From<[u8; 23]> for Value

impl From<[u8; 8]> for Value

impl From<i128> for Value

impl From<[u8; 5]> for Value

impl From<BigDecimal> for Value

impl From<[u8; 24]> for Value

impl From<Vec<u8>> for Value

impl<'a> From<&'a str> for Value

impl From<[u8; 3]> for Value

impl From<NaiveDateTime> for Value

impl From<[u8; 0]> for Value

impl From<[u8; 29]> for Value

impl From<NaiveDate> for Value

impl From<String> for Value

impl From<Decimal> for Value

impl From<[u8; 2]> for Value

impl From<[u8; 22]> for Value

impl From<[u8; 31]> for Value

impl Debug for Value

Auto Trait Implementations

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

impl RefUnwindSafe for Value

Blanket Implementations

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

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

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.

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

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

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

impl<T, Ir> FromRow for T where
    Ir: ConvIr<T>,
    T: FromValue<Intermediate = Ir>, 

impl<T> ToValue for T where
    T: Clone + Into<Value>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self