[][src]Trait butane_core::sqlval::FieldType

pub trait FieldType: ToSql + IntoSql + FromSql {
    type RefType: ?Sized + ToSql;

    pub const SQLTYPE: SqlType;
}

Type suitable for being a database column.

Associated Types

type RefType: ?Sized + ToSql[src]

Reference type. Used for ergonomics with String (which has reference type str). For most, it is Self

Loading content...

Associated Constants

Loading content...

Implementations on Foreign Types

impl FieldType for bool[src]

type RefType = bool

impl FieldType for i64[src]

type RefType = i64

impl FieldType for i32[src]

type RefType = i32

impl FieldType for u32[src]

type RefType = u32

impl FieldType for u16[src]

type RefType = u16

impl FieldType for i16[src]

type RefType = i16

impl FieldType for f64[src]

type RefType = f64

impl FieldType for f32[src]

type RefType = f32

impl FieldType for String[src]

type RefType = str

impl FieldType for Vec<u8>[src]

type RefType = Vec<u8>

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

type RefType = Self

Loading content...

Implementors

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

Loading content...