Struct diesel::sql_types::is_nullable::NotNull
source · pub struct NotNull;
Expand description
No, this type cannot be null as it is marked as NOT NULL
at database level
This should be choosen for basically all manual impls of SqlType
beside implementing your own Nullable<>
wrapper type
Trait Implementations§
source§impl AllAreNullable<IsNullable> for NotNull
impl AllAreNullable<IsNullable> for NotNull
source§impl AllAreNullable<NotNull> for IsNullable
impl AllAreNullable<NotNull> for IsNullable
source§impl<O> MaybeNullableType<O> for NotNullwhere
O: SqlType + TypedExpressionType,
impl<O> MaybeNullableType<O> for NotNullwhere
O: SqlType + TypedExpressionType,
source§impl OneIsNullable<IsNullable> for NotNull
impl OneIsNullable<IsNullable> for NotNull
§type Out = IsNullable
type Out = IsNullable
See the trait documentation
source§impl OneIsNullable<NotNull> for IsNullable
impl OneIsNullable<NotNull> for IsNullable
§type Out = IsNullable
type Out = IsNullable
See the trait documentation
impl Copy for NotNull
Auto Trait Implementations§
impl Freeze for NotNull
impl RefUnwindSafe for NotNull
impl Send for NotNull
impl Sync for NotNull
impl Unpin for NotNull
impl UnwindSafe for NotNull
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more