[][src]Trait msql_srv::ToMysqlValue

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

fn to_mysql_text<W: Write>(&self, w: &mut W) -> Result<()>

Encode value using the text-based protocol.

fn to_mysql_bin<W: Write>(&self, w: &mut W, c: &Column) -> Result<()>

Encode value using the binary protocol.

Loading content...

Provided methods

fn is_null(&self) -> bool

Is this value NULL?

Loading content...

Implementations on Foreign Types

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

impl ToMysqlValue for usize[src]

impl ToMysqlValue for isize[src]

impl ToMysqlValue for u8[src]

impl ToMysqlValue for i8[src]

impl ToMysqlValue for u16[src]

impl ToMysqlValue for i16[src]

impl ToMysqlValue for u32[src]

impl ToMysqlValue for i32[src]

impl ToMysqlValue for u64[src]

impl ToMysqlValue for i64[src]

impl ToMysqlValue for f32[src]

impl ToMysqlValue for f64[src]

impl ToMysqlValue for String[src]

impl ToMysqlValue for str[src]

impl ToMysqlValue for [u8][src]

impl ToMysqlValue for Vec<u8>[src]

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

impl ToMysqlValue for NaiveDate[src]

impl ToMysqlValue for NaiveDateTime[src]

impl ToMysqlValue for Duration[src]

impl ToMysqlValue for Value[src]

Loading content...

Implementors

Loading content...