pub struct MySql;
Available on crate feature
mysql
only.Expand description
MySQL database driver.
Trait Implementationsยง
Sourceยงimpl Database for MySql
impl Database for MySql
Sourceยงtype Connection = MySqlConnection
type Connection = MySqlConnection
The concrete
Connection
implementation for this database.Sourceยงtype TransactionManager = MySqlTransactionManager
type TransactionManager = MySqlTransactionManager
The concrete
TransactionManager
implementation for this database.Sourceยงtype QueryResult = MySqlQueryResult
type QueryResult = MySqlQueryResult
The concrete
QueryResult
implementation for this database.Sourceยงtype Column = MySqlColumn
type Column = MySqlColumn
The concrete
Column
implementation for this database.Sourceยงtype TypeInfo = MySqlTypeInfo
type TypeInfo = MySqlTypeInfo
The concrete
TypeInfo
implementation for this database.Sourceยงtype Value = MySqlValue
type Value = MySqlValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was
received from the database.
Sourceยงimpl Decode<'_, MySql> for BigDecimal
impl Decode<'_, MySql> for BigDecimal
Sourceยงfn decode(
value: MySqlValueRef<'_>,
) -> Result<BigDecimal, Box<dyn Error + Send + Sync>>
fn decode( value: MySqlValueRef<'_>, ) -> Result<BigDecimal, Box<dyn Error + Send + Sync>>
Decode a new value of this type using a raw value from the database.
Sourceยงimpl Decode<'_, MySql> for Hyphenated
impl Decode<'_, MySql> for Hyphenated
Sourceยงfn decode(
value: MySqlValueRef<'_>,
) -> Result<Hyphenated, Box<dyn Error + Send + Sync>>
fn decode( value: MySqlValueRef<'_>, ) -> Result<Hyphenated, Box<dyn Error + Send + Sync>>
Decode a new value of this type using a raw value from the database.
Sourceยงimpl<'r> Decode<'r, MySql> for DateTime<FixedOffset>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
impl<'r> Decode<'r, MySql> for DateTime<FixedOffset>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
Sourceยงimpl<'r> Decode<'r, MySql> for DateTime<Local>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
impl<'r> Decode<'r, MySql> for DateTime<Local>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
Sourceยงimpl<'r> Decode<'r, MySql> for DateTime<Utc>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
impl<'r> Decode<'r, MySql> for DateTime<Utc>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
Sourceยงimpl<'r> Decode<'r, MySql> for NaiveDateTime
impl<'r> Decode<'r, MySql> for NaiveDateTime
Sourceยงfn decode(
value: MySqlValueRef<'r>,
) -> Result<NaiveDateTime, Box<dyn Error + Send + Sync>>
fn decode( value: MySqlValueRef<'r>, ) -> Result<NaiveDateTime, Box<dyn Error + Send + Sync>>
Decode a new value of this type using a raw value from the database.
Sourceยงimpl<'r> Decode<'r, MySql> for OffsetDateTime
impl<'r> Decode<'r, MySql> for OffsetDateTime
Sourceยงfn decode(
value: MySqlValueRef<'r>,
) -> Result<OffsetDateTime, Box<dyn Error + Send + Sync>>
fn decode( value: MySqlValueRef<'r>, ) -> Result<OffsetDateTime, Box<dyn Error + Send + Sync>>
Decode a new value of this type using a raw value from the database.
Sourceยงimpl<'r> Decode<'r, MySql> for PrimitiveDateTime
impl<'r> Decode<'r, MySql> for PrimitiveDateTime
Sourceยงfn decode(
value: MySqlValueRef<'r>,
) -> Result<PrimitiveDateTime, Box<dyn Error + Send + Sync>>
fn decode( value: MySqlValueRef<'r>, ) -> Result<PrimitiveDateTime, Box<dyn Error + Send + Sync>>
Decode a new value of this type using a raw value from the database.
Sourceยงimpl Encode<'_, MySql> for &[u8]
impl Encode<'_, MySql> for &[u8]
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for &str
impl Encode<'_, MySql> for &str
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for BigDecimal
impl Encode<'_, MySql> for BigDecimal
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for Cow<'_, str>
impl Encode<'_, MySql> for Cow<'_, str>
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for Date
impl Encode<'_, MySql> for Date
fn size_hint(&self) -> usize
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Sourceยงimpl Encode<'_, MySql> for DateTime<Local>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
impl Encode<'_, MySql> for DateTime<Local>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for DateTime<Utc>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
impl Encode<'_, MySql> for DateTime<Utc>
Note: assumes the connectionโs time_zone
is set to +00:00
(UTC).
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for Decimal
impl Encode<'_, MySql> for Decimal
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for Hyphenated
impl Encode<'_, MySql> for Hyphenated
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl<T> Encode<'_, MySql> for Json<T>where
T: Serialize,
impl<T> Encode<'_, MySql> for Json<T>where
T: Serialize,
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for NaiveDate
impl Encode<'_, MySql> for NaiveDate
fn size_hint(&self) -> usize
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Sourceยงimpl Encode<'_, MySql> for NaiveDateTime
impl Encode<'_, MySql> for NaiveDateTime
fn size_hint(&self) -> usize
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Sourceยงimpl Encode<'_, MySql> for NaiveTime
impl Encode<'_, MySql> for NaiveTime
fn size_hint(&self) -> usize
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Sourceยงimpl Encode<'_, MySql> for OffsetDateTime
impl Encode<'_, MySql> for OffsetDateTime
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for PrimitiveDateTime
impl Encode<'_, MySql> for PrimitiveDateTime
fn size_hint(&self) -> usize
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Sourceยงimpl Encode<'_, MySql> for String
impl Encode<'_, MySql> for String
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for Time
impl Encode<'_, MySql> for Time
fn size_hint(&self) -> usize
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Sourceยงimpl Encode<'_, MySql> for Uuid
impl Encode<'_, MySql> for Uuid
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for Vec<u8>
impl Encode<'_, MySql> for Vec<u8>
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for bool
impl Encode<'_, MySql> for bool
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for f32
impl Encode<'_, MySql> for f32
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for f64
impl Encode<'_, MySql> for f64
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for i16
impl Encode<'_, MySql> for i16
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for i32
impl Encode<'_, MySql> for i32
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for i64
impl Encode<'_, MySql> for i64
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for i8
impl Encode<'_, MySql> for i8
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for u16
impl Encode<'_, MySql> for u16
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for u32
impl Encode<'_, MySql> for u32
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for u64
impl Encode<'_, MySql> for u64
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl Encode<'_, MySql> for u8
impl Encode<'_, MySql> for u8
Sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Sourceยงimpl<'q, T> Encode<'q, MySql> for Option<T>
impl<'q, T> Encode<'q, MySql> for Option<T>
fn produces(&self) -> Option<<MySql as Database>::TypeInfo>
Sourceยงfn encode(self, buf: &mut <MySql as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <MySql as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of
self
into buf
in the expected format for the database.Sourceยงfn encode_by_ref(
&self,
buf: &mut <MySql as HasArguments<'q>>::ArgumentBuffer,
) -> IsNull
fn encode_by_ref( &self, buf: &mut <MySql as HasArguments<'q>>::ArgumentBuffer, ) -> IsNull
fn size_hint(&self) -> usize
Sourceยงimpl HasArguments<'_> for MySql
impl HasArguments<'_> for MySql
Sourceยงimpl<'q> HasStatement<'q> for MySql
impl<'q> HasStatement<'q> for MySql
Sourceยงimpl<'r> HasValueRef<'r> for MySql
impl<'r> HasValueRef<'r> for MySql
Sourceยงimpl MigrateDatabase for MySql
impl MigrateDatabase for MySql
fn create_database( url: &str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>
fn database_exists( url: &str, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + '_>>
fn drop_database( url: &str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>
Sourceยงimpl TestSupport for MySql
impl TestSupport for MySql
Sourceยงfn test_context(
args: &TestArgs,
) -> Pin<Box<dyn Future<Output = Result<TestContext<MySql>, Error>> + Send + '_>>
fn test_context( args: &TestArgs, ) -> Pin<Box<dyn Future<Output = Result<TestContext<MySql>, Error>> + Send + '_>>
Get parameters to construct a
Pool
suitable for testing. Read morefn cleanup_test( db_name: &str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>
Sourceยงimpl Type<MySql> for [u8]
impl Type<MySql> for [u8]
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for BigDecimal
impl Type<MySql> for BigDecimal
Sourceยงimpl Type<MySql> for Cow<'_, str>
impl Type<MySql> for Cow<'_, str>
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl<T> Type<MySql> for DateTime<T>where
T: TimeZone,
impl<T> Type<MySql> for DateTime<T>where
T: TimeZone,
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for Hyphenated
impl Type<MySql> for Hyphenated
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl<T> Type<MySql> for Json<T>
impl<T> Type<MySql> for Json<T>
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for NaiveDateTime
impl Type<MySql> for NaiveDateTime
Sourceยงimpl Type<MySql> for OffsetDateTime
impl Type<MySql> for OffsetDateTime
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for PrimitiveDateTime
impl Type<MySql> for PrimitiveDateTime
Sourceยงimpl Type<MySql> for String
impl Type<MySql> for String
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for Uuid
impl Type<MySql> for Uuid
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for Vec<u8>
impl Type<MySql> for Vec<u8>
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for bool
impl Type<MySql> for bool
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for f32
impl Type<MySql> for f32
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for f64
impl Type<MySql> for f64
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for i16
impl Type<MySql> for i16
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for i32
impl Type<MySql> for i32
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for i64
impl Type<MySql> for i64
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for i8
impl Type<MySql> for i8
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for str
impl Type<MySql> for str
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for u16
impl Type<MySql> for u16
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for u32
impl Type<MySql> for u32
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for u64
impl Type<MySql> for u64
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<MySql> for u8
impl Type<MySql> for u8
Sourceยงfn type_info() -> MySqlTypeInfo
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &MySqlTypeInfo) -> bool
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl HasStatementCache for MySql
Auto Trait Implementationsยง
impl Freeze for MySql
impl RefUnwindSafe for MySql
impl Send for MySql
impl Sync for MySql
impl Unpin for MySql
impl UnwindSafe for MySql
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
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more