Struct odbc_sys::SqlDataType
source · #[repr(C)]pub struct SqlDataType(pub i16);
Tuple Fields§
§0: i16
Implementations§
source§impl SqlDataType
impl SqlDataType
pub const UNKNOWN_TYPE: SqlDataType = _
pub const CHAR: SqlDataType = _
pub const NUMERIC: SqlDataType = _
pub const DECIMAL: SqlDataType = _
sourcepub const INTEGER: SqlDataType = _
pub const INTEGER: SqlDataType = _
Exact numeric value with precision 10 and scale 0 (signed: -2[31] <= n <= 2[31] - 1
,
unsigned: 0 <= n <= 2[32] - 1
). An application uses SQLGetTypeInfo
or SQLColAttribute
to determine whether a particular data type or a particular column in a result set is
unsigned.
pub const SMALLINT: SqlDataType = _
pub const FLOAT: SqlDataType = _
pub const REAL: SqlDataType = _
sourcepub const DOUBLE: SqlDataType = _
pub const DOUBLE: SqlDataType = _
Signed, approximate, numeric value with a binary precision 53 (zero or absolute value
10[-308]
to 10[308]
).
pub const DATETIME: SqlDataType = _
pub const VARCHAR: SqlDataType = _
pub const DATE: SqlDataType = _
pub const TIME: SqlDataType = _
sourcepub const TIMESTAMP: SqlDataType = _
pub const TIMESTAMP: SqlDataType = _
Year, month, day, hour, minute, and second fields, with valid values as defined for the DATE and TIME data types.
pub const EXT_TIME_OR_INTERVAL: SqlDataType = _
pub const EXT_TIMESTAMP: SqlDataType = _
pub const EXT_LONG_VARCHAR: SqlDataType = _
pub const EXT_BINARY: SqlDataType = _
pub const EXT_VAR_BINARY: SqlDataType = _
pub const EXT_LONG_VAR_BINARY: SqlDataType = _
pub const EXT_BIG_INT: SqlDataType = _
pub const EXT_TINY_INT: SqlDataType = _
pub const EXT_BIT: SqlDataType = _
pub const EXT_W_CHAR: SqlDataType = _
pub const EXT_W_VARCHAR: SqlDataType = _
pub const EXT_W_LONG_VARCHAR: SqlDataType = _
pub const EXT_GUID: SqlDataType = _
Trait Implementations§
source§impl Clone for SqlDataType
impl Clone for SqlDataType
source§fn clone(&self) -> SqlDataType
fn clone(&self) -> SqlDataType
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 SqlDataType
impl Debug for SqlDataType
source§impl PartialEq for SqlDataType
impl PartialEq for SqlDataType
source§fn eq(&self, other: &SqlDataType) -> bool
fn eq(&self, other: &SqlDataType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SqlDataType
impl Eq for SqlDataType
impl StructuralEq for SqlDataType
impl StructuralPartialEq for SqlDataType
Auto Trait Implementations§
impl RefUnwindSafe for SqlDataType
impl Send for SqlDataType
impl Sync for SqlDataType
impl Unpin for SqlDataType
impl UnwindSafe for SqlDataType
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