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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for ColumnType
impl PartialEq for ColumnType
Source§impl TryFrom<ColumnDescriptor> for ColumnType
impl TryFrom<ColumnDescriptor> for ColumnType
Source§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.
impl StructuralPartialEq for ColumnType
Auto Trait Implementations§
impl Freeze for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnwindSafe for ColumnType
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