diesel::sql_types

Trait 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 CChar

Available on crate feature postgres_backend only.
Source§

impl SingleValue for Cidr

Available on crate feature postgres_backend only.
Source§

impl SingleValue for Citext

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

Source§

impl SingleValue for MacAddr8

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 RangeBoundEnum

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 Multirange<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>