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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.