Enum mysqlbinlog_network::Value [−]
pub enum Value { NULL, Bytes(Vec<u8, Global>), Int(i64), UInt(u64), Float(f32), Double(f64), Date(u16, u8, u8, u8, u8, u8, u32), Time(bool, u32, u8, u8, u8, u32), }
Expand description
Client side representation of a value of MySql column.
The Value
is also used as a parameter to a prepared statement.
Variants
Int(i64)
UInt(u64)
Float(f32)
Double(f64)
year, month, day, hour, minutes, seconds, micro seconds
is negative, days, hours, minutes, seconds, micro seconds
Implementations
impl Value
impl Value
Trait Implementations
impl From<BigDecimal> for Value
impl From<BigDecimal> for Value
pub fn from(big_decimal: BigDecimal) -> Value
pub fn from(big_decimal: BigDecimal) -> Value
Performs the conversion.
impl From<NaiveDateTime> for Value
impl From<NaiveDateTime> for Value
pub fn from(x: NaiveDateTime) -> Value
pub fn from(x: NaiveDateTime) -> Value
Performs the conversion.
impl FromValue for Value
impl FromValue for Value
type Intermediate = Value
pub fn from_value(v: Value) -> Value
pub fn from_value(v: Value) -> Value
Will panic if could not convert v
to Self
.
pub fn from_value_opt(v: Value) -> Result<Value, FromValueError>
pub fn from_value_opt(v: Value) -> Result<Value, FromValueError>
Will return Err(Error::FromValueError(v))
if could not convert v
to Self
.
fn get_intermediate(v: Value) -> Result<Self::Intermediate, FromValueError>
fn get_intermediate(v: Value) -> Result<Self::Intermediate, FromValueError>
Will return Err(Error::FromValueError(v))
if v
is not convertible to Self
.
impl PartialOrd<Value> for Value
impl PartialOrd<Value> for Value
pub fn partial_cmp(&self, other: &Value) -> Option<Ordering>
pub fn partial_cmp(&self, other: &Value) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn from_row_opt(row: Row) -> Result<T, FromRowError>
fn from_row(row: Row) -> Self
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V