Enum mysql::Value
[−]
[src]
pub enum Value { NULL, Bytes(Vec<u8>), Int(i64), UInt(u64), Float(f64), Date(u16, u8, u8, u8, u8, u8, u32), Time(bool, u32, u8, u8, u8, u32), }
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(u16, u8, u8, u8, u8, u8, u32)
year, month, day, hour, minutes, seconds, micro seconds
Time(bool, u32, u8, u8, u8, u32)
is negative, days, hours, minutes, seconds, micro seconds
Methods
impl Value
[src]
Trait Implementations
impl ConvIr<Value> for Value
[src]
fn new(v: Value) -> Result<Value, FromValueError>
[src]
fn commit(self) -> Value
[src]
fn rollback(self) -> Value
[src]
impl PartialEq<Value> for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
[src]
This method tests for !=
.
impl Debug for Value
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl From<[u8; 15]> for Value
[src]
impl From<u32> for Value
[src]
impl From<i16> for Value
[src]
impl From<[u8; 5]> for Value
[src]
impl From<f32> for Value
[src]
impl From<[u8; 19]> for Value
[src]
impl From<bool> for Value
[src]
impl<'a> From<&'a [u8]> for Value
[src]
impl From<[u8; 16]> for Value
[src]
impl From<String> for Value
[src]
impl From<[u8; 22]> for Value
[src]
impl From<[u8; 29]> for Value
[src]
impl From<[u8; 9]> for Value
[src]
impl<T> From<Option<T>> for Value where
T: Into<Value>,
[src]
T: Into<Value>,
impl From<u64> for Value
[src]
impl From<i32> for Value
[src]
impl<'a, T> From<&'a T> for Value where
T: ToValue,
[src]
T: ToValue,
impl From<[u8; 17]> for Value
[src]
impl From<NaiveDateTime> for Value
[src]
fn from(x: NaiveDateTime) -> Value
[src]
Performs the conversion.
impl From<f64> for Value
[src]
impl From<[u8; 4]> for Value
[src]
impl From<[u8; 3]> for Value
[src]
impl From<Duration> for Value
[src]
impl From<[u8; 25]> for Value
[src]
impl From<Vec<u8>> for Value
[src]
impl From<[u8; 8]> for Value
[src]
impl From<[u8; 31]> for Value
[src]
impl From<NaiveDate> for Value
[src]
impl<T> From<Serialized<T>> for Value where
T: Serialize,
[src]
T: Serialize,
fn from(x: Serialized<T>) -> Value
[src]
Performs the conversion.
impl From<[u8; 6]> for Value
[src]
impl From<[u8; 13]> for Value
[src]
impl From<[u8; 2]> for Value
[src]
impl From<i64> for Value
[src]
impl From<[u8; 28]> for Value
[src]
impl From<usize> for Value
[src]
impl From<[u8; 21]> for Value
[src]
impl From<[u8; 10]> for Value
[src]
impl From<[u8; 12]> for Value
[src]
impl From<[u8; 20]> for Value
[src]
impl From<u16> for Value
[src]
impl From<[u8; 26]> for Value
[src]
impl From<NaiveTime> for Value
[src]
impl From<[u8; 24]> for Value
[src]
impl From<u8> for Value
[src]
impl From<[u8; 23]> for Value
[src]
impl From<[u8; 0]> for Value
[src]
impl From<[u8; 18]> for Value
[src]
impl From<Duration> for Value
[src]
impl From<i8> for Value
[src]
impl<'a> From<&'a str> for Value
[src]
impl From<[u8; 11]> for Value
[src]
impl From<[u8; 7]> for Value
[src]
impl From<[u8; 32]> for Value
[src]
impl From<[u8; 27]> for Value
[src]
impl From<isize> for Value
[src]
impl From<Timespec> for Value
[src]
impl From<[u8; 30]> for Value
[src]
impl From<[u8; 14]> for Value
[src]
impl From<[u8; 1]> for Value
[src]
impl From<Value> for Value
[src]
impl FromValue for Value
[src]
type Intermediate = Value
fn from_value(v: Value) -> Value
[src]
Will panic if could not convert v
to Self
.
fn from_value_opt(v: Value) -> Result<Value, FromValueError>
[src]
Will return Err(Error::FromValueError(v))
if could not convert v
to Self
.
fn get_intermediate(v: Value) -> Result<Self::Intermediate, FromValueError>
[src]
Will return Err(Error::FromValueError(v))
if v
is not convertible to Self
.
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd<Value> for Value
[src]
fn partial_cmp(&self, __arg_0: &Value) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Value) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Value) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Value) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Value) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more