Trait msql_srv::ToMysqlValue [] [src]

pub trait ToMysqlValue {
    fn to_mysql_text<W: Write>(&self, w: &mut W) -> Result<()>;
fn to_mysql_bin<W: Write>(&self, w: &mut W, c: &Column) -> Result<()>; fn is_null(&self) -> bool { ... } }

Implementors of this trait can be sent as a single resultset value to a MySQL/MariaDB client.

Required Methods

Encode value using the text-based protocol.

Encode value using the binary protocol.

Provided Methods

Is this value NULL?

Implementations on Foreign Types

impl<T> ToMysqlValue for Option<T> where
    T: ToMysqlValue
[src]

[src]

[src]

[src]

impl ToMysqlValue for usize
[src]

[src]

[src]

[src]

impl ToMysqlValue for isize
[src]

[src]

[src]

[src]

impl ToMysqlValue for u8
[src]

[src]

[src]

[src]

impl ToMysqlValue for i8
[src]

[src]

[src]

[src]

impl ToMysqlValue for u16
[src]

[src]

[src]

[src]

impl ToMysqlValue for i16
[src]

[src]

[src]

[src]

impl ToMysqlValue for u32
[src]

[src]

[src]

[src]

impl ToMysqlValue for i32
[src]

[src]

[src]

[src]

impl ToMysqlValue for u64
[src]

[src]

[src]

[src]

impl ToMysqlValue for i64
[src]

[src]

[src]

[src]

impl ToMysqlValue for f32
[src]

[src]

[src]

[src]

impl ToMysqlValue for f64
[src]

[src]

[src]

[src]

impl ToMysqlValue for String
[src]

[src]

[src]

[src]

impl ToMysqlValue for str
[src]

[src]

[src]

[src]

impl ToMysqlValue for [u8]
[src]

[src]

[src]

[src]

impl ToMysqlValue for Vec<u8>
[src]

[src]

[src]

[src]

impl<'a, T: ?Sized> ToMysqlValue for &'a T where
    T: ToMysqlValue
[src]

[src]

[src]

[src]

impl ToMysqlValue for NaiveDate
[src]

[src]

[src]

[src]

impl ToMysqlValue for NaiveDateTime
[src]

[src]

[src]

[src]

impl ToMysqlValue for Duration
[src]

[src]

[src]

[src]

Implementors