#[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,
}
Available on crate feature 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
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.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.