Enum odbc_api::handles::Nullability
source · 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<Nullability> for Nullability
impl PartialEq<Nullability> for Nullability
source§fn eq(&self, other: &Nullability) -> bool
fn eq(&self, other: &Nullability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.