#[non_exhaustive]pub enum MysqlType {
Show 20 variants
Tiny,
UnsignedTiny,
Short,
UnsignedShort,
Long,
UnsignedLong,
LongLong,
UnsignedLongLong,
Float,
Double,
Numeric,
Time,
Date,
DateTime,
Timestamp,
String,
Blob,
Bit,
Set,
Enum,
}
mysql_backend
only.Expand description
Represents possible types, that can be transmitted as via the Mysql wire protocol
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Tiny
A 8 bit signed integer
UnsignedTiny
A 8 bit unsigned integer
Short
A 16 bit signed integer
UnsignedShort
A 16 bit unsigned integer
Long
A 32 bit signed integer
UnsignedLong
A 32 bit unsigned integer
LongLong
A 64 bit signed integer
UnsignedLongLong
A 64 bit unsigned integer
Float
A 32 bit floating point number
Double
A 64 bit floating point number
Numeric
A fixed point decimal value
Time
A datatype to store a time value
Date
A datatype to store a date value
DateTime
A datatype containing timestamp values ranging from ‘1000-01-01 00:00:00’ to ‘9999-12-31 23:59:59’.
Timestamp
A datatype containing timestamp values ranging from 1970-01-01 00:00:01’ UTC to ‘2038-01-19 03:14:07’ UTC.
String
A datatype for string values
Blob
A datatype containing binary large objects
Bit
A value containing a set of bit’s
Set
A user defined set type
Enum
A user defined enum type
Trait Implementations§
source§impl From<(enum_field_types, Flags)> for MysqlType
Available on crate feature mysql
only.
impl From<(enum_field_types, Flags)> for MysqlType
mysql
only.source§fn from((tpe, flags): (enum_field_types, Flags)) -> Self
fn from((tpe, flags): (enum_field_types, Flags)) -> Self
source§impl From<MysqlType> for (enum_field_types, Flags)
Available on crate feature mysql
only.
impl From<MysqlType> for (enum_field_types, Flags)
mysql
only.impl Copy for MysqlType
impl Eq for MysqlType
impl StructuralPartialEq for MysqlType
Auto Trait Implementations§
impl Freeze for MysqlType
impl RefUnwindSafe for MysqlType
impl Send for MysqlType
impl Sync for MysqlType
impl Unpin for MysqlType
impl UnwindSafe for MysqlType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.