Struct diesel::types::Nullable [] [src]

pub struct Nullable<ST: NotNull>(_);

The nullable SQL type. This wraps another SQL type to indicate that it can be null. By default all values are assumed to be NOT NULL.

ToSql impls

  • Any T which implements ToSql<ST>
  • Option<T> for any T which implements ToSql<ST>

FromSql impls

  • Option<T> for any T which implements FromSql<ST>

Trait Implementations

impl<T: SqlOrd + NotNull> SqlOrd for Nullable<T>
[src]

impl<T> QueryId for Nullable<T> where T: QueryId + NotNull
[src]

impl<T> Foldable for Nullable<T> where T: Foldable + NotNull,
        T::Sum: NotNull,
        T::Avg: NotNull
[src]

impl<ST: Debug + NotNull> Debug for Nullable<ST>
[src]

Formats the value using the given formatter.

impl<ST: Clone + NotNull> Clone for Nullable<ST>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<ST: Copy + NotNull> Copy for Nullable<ST>
[src]

impl<ST: Default + NotNull> Default for Nullable<ST>
[src]

Returns the "default value" for a type. Read more

impl<T: NotNull> IntoNullable for Nullable<T>
[src]