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)]

Implementors§

source§

impl SingleValue for BigInt

source§

impl SingleValue for Binary

source§

impl SingleValue for Bool

source§

impl SingleValue for Cidr

Available on crate feature postgres_backend only.
source§

impl SingleValue for Date

source§

impl SingleValue for Datetime

Available on crate feature mysql_backend only.
source§

impl SingleValue for Double

source§

impl SingleValue for Float

source§

impl SingleValue for Inet

Available on crate feature postgres_backend only.
source§

impl SingleValue for Integer

source§

impl SingleValue for Interval

source§

impl SingleValue for Json

source§

impl SingleValue for Jsonb

Available on crate feature postgres_backend only.
source§

impl SingleValue for MacAddr

Available on crate feature postgres_backend only.
source§

impl SingleValue for Money

Available on crate feature postgres_backend only.
source§

impl SingleValue for Numeric

source§

impl SingleValue for Oid

Available on crate feature postgres_backend only.
source§

impl SingleValue for SmallInt

source§

impl SingleValue for Text

source§

impl SingleValue for Time

source§

impl SingleValue for Timestamp

source§

impl SingleValue for diesel::sql_types::Timestamptz

Available on crate feature postgres_backend only.
source§

impl SingleValue for diesel::sql_types::TimestamptzSqlite

Available on crate feature sqlite only.
source§

impl SingleValue for TinyInt

source§

impl SingleValue for Uuid

Available on crate feature postgres_backend only.
source§

impl<ST: 'static> SingleValue for Array<ST>

Available on crate feature postgres_backend only.
source§

impl<ST: 'static> SingleValue for Range<ST>

Available on crate feature postgres_backend only.
source§

impl<ST: 'static> SingleValue for Record<ST>

Available on crate feature postgres_backend only.
source§

impl<ST: 'static> SingleValue for Unsigned<ST>

Available on crate feature mysql_backend only.
source§

impl<T: SqlType + SingleValue> SingleValue for Nullable<T>