#[non_exhaustive]pub enum ColumnType {
Show 32 variants
Decimal,
Tiny,
Short,
Long,
Float,
Double,
Null,
Timestamp,
LongLong,
Int24,
Date,
Time,
DateTime,
Year,
NewDate,
VarChar,
Bit,
Timestamp2,
DateTime2,
Time2,
NewDecimal,
Enum,
Set,
TinyBlob,
MediumBlob,
LongBlob,
Blob,
VarString,
String,
Geometry,
Json,
Unknown,
}Expand description
MySQL data-dictionary column type. Mirrors dd::enum_column_types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decimal
Tiny
Short
Long
Float
Double
Null
Timestamp
LongLong
Int24
Date
Time
DateTime
Year
NewDate
VarChar
Bit
Timestamp2
DateTime2
Time2
NewDecimal
Enum
Set
TinyBlob
MediumBlob
LongBlob
Blob
VarString
String
Geometry
Json
Unknown
Unknown / out-of-range value. Future MySQL versions may add new types.
Implementations§
Source§impl ColumnType
impl ColumnType
Sourcepub const fn from_raw(raw: i32) -> Self
pub const fn from_raw(raw: i32) -> Self
Map the raw dd::enum_column_types integer to a ColumnType.
Returns ColumnType::Unknown for unrecognised values.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColumnType
Source§impl Debug for ColumnType
impl Debug for ColumnType
impl Eq for ColumnType
Source§impl PartialEq for ColumnType
impl PartialEq for ColumnType
Source§fn eq(&self, other: &ColumnType) -> bool
fn eq(&self, other: &ColumnType) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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