Trait FieldType
Other items inbutane
pub trait FieldType: ToSql + FromSql { type RefType: ToSql + ?Sized; const SQLTYPE: SqlType; }
Type suitable for being a database column.
type RefType: ToSql + ?Sized
Reference type. Used for ergonomics with String (which has reference type str). For most, it is Self
const SQLTYPE: SqlType
impl<T> FieldType for Option<T> where T: FieldType,
pub const SQLTYPE: SqlType
type RefType = Option<T>
impl FieldType for String
type RefType = str
impl FieldType for i32
type RefType = i32
impl FieldType for i8
type RefType = i8
impl FieldType for f32
type RefType = f32
impl FieldType for u8
type RefType = u8
impl FieldType for f64
type RefType = f64
impl FieldType for NaiveDateTime
impl FieldType for Vec<u8, Global>
type RefType = Vec<u8, Global>
impl FieldType for i16
type RefType = i16
impl FieldType for Uuid
type RefType = Uuid
impl FieldType for bool
type RefType = bool
impl FieldType for i64
type RefType = i64
impl FieldType for u16
type RefType = u16
impl FieldType for u32
type RefType = u32
impl<T> FieldType for ForeignKey<T> where T: DataObject,
type RefType = <<T as DataObject>::PKType as FieldType>::RefType