Trait diesel::sql_types::IntoNotNullable

source ·
pub trait IntoNotNullable {
    type NotNullable;
}
Expand description

Converts a type which may or may not be nullable into its not nullable representation.

Required Associated Types§

source

type NotNullable

The not nullable representation of this type.

For Nullable<T>, this will be T otherwise the type itself

Implementors§

source§

impl<T> IntoNotNullable for Nullable<T>
where T: SqlType,

§

type NotNullable = T

source§

impl<T> IntoNotNullable for T
where T: SqlType<IsNull = NotNull>,

§

type NotNullable = T