Struct odbc_sys::SqlDataType

source ·
#[repr(C)]
pub struct SqlDataType(pub i16);

Tuple Fields§

§0: i16

Implementations§

source§

impl SqlDataType

source

pub const UNKNOWN_TYPE: SqlDataType = _

source

pub const CHAR: SqlDataType = _

source

pub const NUMERIC: SqlDataType = _

source

pub const DECIMAL: SqlDataType = _

source

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.

source

pub const SMALLINT: SqlDataType = _

source

pub const FLOAT: SqlDataType = _

source

pub const REAL: SqlDataType = _

source

pub const DOUBLE: SqlDataType = _

Signed, approximate, numeric value with a binary precision 53 (zero or absolute value 10[-308] to 10[308]).

source

pub const DATETIME: SqlDataType = _

source

pub const VARCHAR: SqlDataType = _

source

pub const DATE: SqlDataType = _

source

pub const TIME: SqlDataType = _

source

pub const TIMESTAMP: SqlDataType = _

Year, month, day, hour, minute, and second fields, with valid values as defined for the DATE and TIME data types.

source

pub const EXT_TIME_OR_INTERVAL: SqlDataType = _

source

pub const EXT_TIMESTAMP: SqlDataType = _

source

pub const EXT_LONG_VARCHAR: SqlDataType = _

source

pub const EXT_BINARY: SqlDataType = _

source

pub const EXT_VAR_BINARY: SqlDataType = _

source

pub const EXT_LONG_VAR_BINARY: SqlDataType = _

source

pub const EXT_BIG_INT: SqlDataType = _

source

pub const EXT_TINY_INT: SqlDataType = _

source

pub const EXT_BIT: SqlDataType = _

source

pub const EXT_W_CHAR: SqlDataType = _

source

pub const EXT_W_VARCHAR: SqlDataType = _

source

pub const EXT_W_LONG_VARCHAR: SqlDataType = _

source

pub const EXT_GUID: SqlDataType = _

Trait Implementations§

source§

impl Clone for SqlDataType

source§

fn clone(&self) -> SqlDataType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SqlDataType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for SqlDataType

source§

fn eq(&self, other: &SqlDataType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for SqlDataType

source§

impl Eq for SqlDataType

source§

impl StructuralEq for SqlDataType

source§

impl StructuralPartialEq for SqlDataType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.