pub struct NotNull { /* private fields */ }Expand description
Marks a Column as NOT NULL, meaning the Column cannot contain NULL values and trying to insert NULL values is an Error.
Implementations§
Source§impl NotNull
impl NotNull
pub fn new(on_conflict: OnConflict) -> Self
pub fn set_on_conflict(self, on_conf: OnConflict) -> Self
Trait Implementations§
impl Copy for NotNull
impl Eq for NotNull
impl StructuralPartialEq 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