pub trait SingleValue: SqlType { }
Expand description
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)]
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl SingleValue for BigInt
impl SingleValue for Binary
impl SingleValue for Bool
impl SingleValue for CChar
Available on crate feature
postgres_backend
only.impl SingleValue for Cidr
Available on crate feature
postgres_backend
only.impl SingleValue for Citext
Available on crate feature
postgres_backend
only.impl SingleValue for Date
impl SingleValue for Datetime
Available on crate feature
mysql_backend
only.impl SingleValue for Double
impl SingleValue for Float
impl SingleValue for Inet
Available on crate feature
postgres_backend
only.impl SingleValue for Integer
impl SingleValue for Interval
impl SingleValue for Json
impl SingleValue for Jsonb
impl SingleValue for MacAddr8
Available on crate feature
postgres_backend
only.impl SingleValue for MacAddr
Available on crate feature
postgres_backend
only.impl SingleValue for Money
Available on crate feature
postgres_backend
only.impl SingleValue for NullValueTreatmentEnum
Available on crate feature
postgres_backend
only.impl SingleValue for Numeric
impl SingleValue for Oid
Available on crate feature
postgres_backend
only.impl SingleValue for RangeBoundEnum
Available on crate feature
postgres_backend
only.impl SingleValue for SmallInt
impl SingleValue for Text
impl SingleValue for Time
impl SingleValue for Timestamp
impl SingleValue for diesel::sql_types::Timestamptz
Available on crate feature
postgres_backend
only.impl SingleValue for diesel::sql_types::TimestamptzSqlite
Available on crate feature
sqlite
only.impl SingleValue for TinyInt
impl SingleValue for Uuid
Available on crate feature
postgres_backend
only.impl<ST: 'static> SingleValue for Array<ST>
Available on crate feature
postgres_backend
only.impl<ST: 'static> SingleValue for Multirange<ST>
Available on crate feature
postgres_backend
only.impl<ST: 'static> SingleValue for Range<ST>
Available on crate feature
postgres_backend
only.impl<ST: 'static> SingleValue for Record<ST>
Available on crate feature
postgres_backend
only.impl<ST: 'static> SingleValue for Unsigned<ST>
Available on crate feature
mysql_backend
only.