pub trait ToMysqlValue {
// Required methods
fn to_mysql_text<W: Write>(&self, w: &mut W) -> Result<()>;
fn to_mysql_bin<W: Write>(&self, w: &mut W, c: &Column) -> Result<()>;
// Provided method
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§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.