[][src]Trait butane_core::sqlval::ToSql

pub trait ToSql {
    pub fn to_sql(&self) -> SqlVal;
}

Used to convert another type to a SqlVal.

Unlike IntoSql, the value is not consumed.

Required methods

pub fn to_sql(&self) -> SqlVal[src]

Loading content...

Implementations on Foreign Types

impl ToSql for bool[src]

impl ToSql for i64[src]

impl ToSql for i32[src]

impl ToSql for u32[src]

impl ToSql for u16[src]

impl ToSql for i16[src]

impl ToSql for f64[src]

impl ToSql for f32[src]

impl ToSql for String[src]

impl ToSql for Vec<u8>[src]

impl ToSql for &str[src]

impl ToSql for str[src]

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

Loading content...

Implementors

impl<T> ToSql for ForeignKey<T> where
    T: DataObject
[src]

Loading content...