pub trait DataTypeExt {
// Required methods
fn name(self) -> &'static str;
fn accepts_character_data(self) -> bool;
fn accepts_binary_data(self) -> bool;
fn accepts_numeric_data(self) -> bool;
fn accepts_datetime_data(self) -> bool;
}
Available on crate feature
odbc
only.Expand description
Extension trait for DataType with helper methods
Required Methods§
Sourcefn accepts_character_data(self) -> bool
fn accepts_character_data(self) -> bool
Check if this is a character/string type
Sourcefn accepts_binary_data(self) -> bool
fn accepts_binary_data(self) -> bool
Check if this is a binary type
Sourcefn accepts_numeric_data(self) -> bool
fn accepts_numeric_data(self) -> bool
Check if this is a numeric type
Sourcefn accepts_datetime_data(self) -> bool
fn accepts_datetime_data(self) -> bool
Check if this is a date/time type