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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)