Struct odbc_api::ColumnDescription
source · [−]pub struct ColumnDescription {
pub name: Vec<SqlChar>,
pub data_type: DataType,
pub nullability: Nullability,
}
Expand description
Describes the type and attributes of a column.
Fields
name: Vec<SqlChar>
Column name. May be empty if unavailable.
data_type: DataType
Type of the column
nullability: Nullability
Indicates whether the column is nullable or not.
Implementations
sourceimpl ColumnDescription
impl ColumnDescription
sourcepub fn name_to_string(&self) -> Result<String, DecodeUtf16Error>
pub fn name_to_string(&self) -> Result<String, DecodeUtf16Error>
Converts the internal UTF16 representation of the column name into UTF8 and returns the
result as a String
.
sourcepub fn could_be_nullable(&self) -> bool
pub fn could_be_nullable(&self) -> bool
true
if the column is Nullable
or it is not know whether the column is nullable. false
if and only if the column is NoNulls
.
Trait Implementations
sourceimpl Clone for ColumnDescription
impl Clone for ColumnDescription
sourcefn clone(&self) -> ColumnDescription
fn clone(&self) -> ColumnDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColumnDescription
impl Debug for ColumnDescription
sourceimpl Default for ColumnDescription
impl Default for ColumnDescription
sourcefn default() -> ColumnDescription
fn default() -> ColumnDescription
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ColumnDescription> for ColumnDescription
impl PartialEq<ColumnDescription> for ColumnDescription
sourcefn eq(&self, other: &ColumnDescription) -> bool
fn eq(&self, other: &ColumnDescription) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ColumnDescription) -> bool
fn ne(&self, other: &ColumnDescription) -> bool
This method tests for !=
.
impl Eq for ColumnDescription
impl StructuralEq for ColumnDescription
impl StructuralPartialEq for ColumnDescription
Auto Trait Implementations
impl RefUnwindSafe for ColumnDescription
impl Send for ColumnDescription
impl Sync for ColumnDescription
impl Unpin for ColumnDescription
impl UnwindSafe for ColumnDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more