pub enum Nullability {
Nullable,
NotNull,
Unknown,
}Expand description
Column nullability metadata.
Variants§
Nullable
Null values are allowed.
NotNull
Null values are rejected.
Unknown
Nullability is unknown or unspecified.
Trait Implementations§
Source§impl Clone for Nullability
impl Clone for Nullability
Source§fn clone(&self) -> Nullability
fn clone(&self) -> Nullability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Nullability
impl Debug for Nullability
Source§impl Default for Nullability
impl Default for Nullability
Source§fn default() -> Nullability
fn default() -> Nullability
Returns the “default value” for a type. Read more
Source§impl Hash for Nullability
impl Hash for Nullability
Source§impl Ord for Nullability
impl Ord for Nullability
Source§fn cmp(&self, other: &Nullability) -> Ordering
fn cmp(&self, other: &Nullability) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Nullability
impl PartialEq for Nullability
Source§fn eq(&self, other: &Nullability) -> bool
fn eq(&self, other: &Nullability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Nullability
impl PartialOrd for Nullability
impl Copy for Nullability
impl Eq for Nullability
impl StructuralPartialEq for Nullability
Auto Trait Implementations§
impl Freeze for Nullability
impl RefUnwindSafe for Nullability
impl Send for Nullability
impl Sync for Nullability
impl Unpin for Nullability
impl UnsafeUnpin for Nullability
impl UnwindSafe for Nullability
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