pub trait SqlType: 'static {
type IsNull: OneIsNullable<IsNullable> + OneIsNullable<NotNull>;
}
Expand description
A marker trait for SQL types
Deriving
This trait is automatically implemented by #[derive(SqlType)]
which sets IsNull
to is_nullable::NotNull
Required Associated Types§
sourcetype IsNull: OneIsNullable<IsNullable> + OneIsNullable<NotNull>
type IsNull: OneIsNullable<IsNullable> + OneIsNullable<NotNull>
Is this type nullable?
This type should always be one of the structs in the ’is_nullable` module. See the documentation of those structs for more details.