pub enum Nullability {
Unknown,
Nullable,
NoNulls,
}
Expand description
Indication of whether a column is nullable or not.
Variants§
Unknown
Indicates that we do not know whether the column is Nullable or not.
Nullable
The column may hold NULL values.
NoNulls
The column can not hold NULL values.
Implementations§
Source§impl Nullability
impl Nullability
Sourcepub fn new(nullability: Nullability) -> Self
pub fn new(nullability: Nullability) -> Self
Construct a new instance from a Nullability
new type constant.
use odbc_api::Nullability;
assert_eq!(Nullability::Unknown, Nullability::new(odbc_sys::Nullability::UNKNOWN));
assert_eq!(Nullability::NoNulls, Nullability::new(odbc_sys::Nullability::NO_NULLS));
assert_eq!(Nullability::Nullable, Nullability::new(odbc_sys::Nullability::NULLABLE));
Trait Implementations§
Source§impl Clone for Nullability
impl Clone for Nullability
Source§fn clone(&self) -> Nullability
fn clone(&self) -> Nullability
Returns a copy of the value. Read more
1.0.0 · 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 PartialEq for Nullability
impl PartialEq 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 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
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
)