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
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.
Provided Methods
Implementations on Foreign Types
impl<T> ToMysqlValue for Option<T> where
T: ToMysqlValue,
[src]
T: ToMysqlValue,