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,
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]
T: ToMysqlValue,