pub struct NotNull;
Expand description
No, this type cannot be null as it is marked as NOT NULL
at database level
This should be chosen 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
Source§type Out = IsNullable
type Out = IsNullable
See the trait documentation
Source§impl OneIsNullable<NotNull> for IsNullable
impl OneIsNullable<NotNull> for IsNullable
Source§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