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 { ... }
}
Expand description

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§

Implementors§