[][src]Trait diesel::sql_types::MaybeNullableType

pub trait MaybeNullableType<O> {
    type Out: SqlType + TypedExpressionType;
}

A type level constructor for maybe nullable types

Constructs either Nullable<O> (for Self == is_nullable::IsNullable) or O (for Self == is_nullable::NotNull)

Associated Types

type Out: SqlType + TypedExpressionType

See the trait documentation

Loading content...

Implementors

impl<O> MaybeNullableType<O> for IsNullable where
    O: SqlType,
    Nullable<O>: TypedExpressionType
[src]

type Out = Nullable<O>

impl<O> MaybeNullableType<O> for NotNull where
    O: SqlType + TypedExpressionType
[src]

type Out = O

Loading content...