Trait diesel::sql_types::SingleValue

source ·
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

source§

impl SingleValue for Date

source§

impl SingleValue for Double

source§

impl SingleValue for Float

source§

impl SingleValue for Inet

source§

impl SingleValue for Integer

source§

impl SingleValue for Interval

source§

impl SingleValue for Json

source§

impl SingleValue for Jsonb

source§

impl SingleValue for MacAddr

source§

impl SingleValue for Money

source§

impl SingleValue for Numeric

source§

impl SingleValue for Oid

source§

impl SingleValue for SmallInt

source§

impl SingleValue for Text

source§

impl SingleValue for Time

source§

impl SingleValue for Timestamp

source§

impl SingleValue for Timestamptz

source§

impl SingleValue for TinyInt

source§

impl SingleValue for Uuid

source§

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

source§

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

source§

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

source§

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