diesel::sql_types

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

Source§

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