Trait diesel::sql_types::SingleValue [−][src]
pub trait SingleValue { }
A marker trait indicating that a SQL type represents a single value, as opposed to a list of values.
This trait should generally be implemented for all SQL types with the exception of Rust tuples. If a column could have this as its type, this trait should be implemented.
Deriving
This trait is automatically implemented by #[derive(SqlType)]
Implementors
impl SingleValue for Bool
impl SingleValue for Tinyint
impl SingleValue for SmallInt
impl SingleValue for Integer
impl SingleValue for BigInt
impl SingleValue for Float
impl SingleValue for Double
impl SingleValue for Numeric
impl SingleValue for Text
impl SingleValue for Binary
impl SingleValue for Date
impl SingleValue for Interval
impl SingleValue for Time
impl SingleValue for Timestamp
impl<T: NotNull + SingleValue> SingleValue for Nullable<T>
impl<ST> SingleValue for Unsigned<ST>
impl SingleValue for Datetime
impl SingleValue for Oid
impl SingleValue for Timestamptz
impl<ST> SingleValue for Array<ST>
impl<ST> SingleValue for Range<ST>
impl<ST> SingleValue for Record<ST>
impl SingleValue for Uuid
impl SingleValue for Json
impl SingleValue for Jsonb
impl SingleValue for Money
impl SingleValue for MacAddr
impl SingleValue for Inet
impl SingleValue for Cidr