Struct odbc_iter::ColumnType
source · pub struct ColumnType {
pub datum_type: DatumType,
pub odbc_type: SqlDataType,
pub nullable: bool,
pub name: String,
}
Expand description
Description of column type, name and nullability properties used to represent row schema.
Fields§
§datum_type: DatumType
Supported type of datum that this column holds. See DatumType
documentation of usage of corresponding Column::into_*()
functions.
odbc_type: SqlDataType
ODBC SQL Data Type as returned by the driver.
nullable: bool
true
if column can contain NULL
value. If false
the Column::into_*()
functions should always return Some
value.
name: String
Name of the column as provided by the ODBC driver.
Trait Implementations§
source§impl Clone for ColumnType
impl Clone for ColumnType
source§fn clone(&self) -> ColumnType
fn clone(&self) -> ColumnType
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 ColumnType
impl Debug for ColumnType
source§impl PartialEq<ColumnType> for ColumnType
impl PartialEq<ColumnType> for ColumnType
source§fn eq(&self, other: &ColumnType) -> bool
fn eq(&self, other: &ColumnType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ColumnDescriptor> for ColumnType
impl TryFrom<ColumnDescriptor> for ColumnType
§type Error = UnsupportedSqlDataType
type Error = UnsupportedSqlDataType
The type returned in the event of a conversion error.
source§fn try_from(
column_descriptor: ColumnDescriptor
) -> Result<ColumnType, UnsupportedSqlDataType>
fn try_from( column_descriptor: ColumnDescriptor ) -> Result<ColumnType, UnsupportedSqlDataType>
Performs the conversion.