pub struct Any;
Expand description
Opaque database driver. Capable of being used in place of any SQLx database driver. The actual driver used will be selected at runtime, from the connection url.
Trait Implementationsยง
Sourceยงimpl Database for Any
impl Database for Any
Sourceยงtype Connection = AnyConnection
type Connection = AnyConnection
The concrete
Connection
implementation for this database.Sourceยงtype TransactionManager = AnyTransactionManager
type TransactionManager = AnyTransactionManager
The concrete
TransactionManager
implementation for this database.Sourceยงtype QueryResult = AnyQueryResult
type QueryResult = AnyQueryResult
The concrete
QueryResult
implementation for this database.Sourceยงtype TypeInfo = AnyTypeInfo
type TypeInfo = AnyTypeInfo
The concrete
TypeInfo
implementation for this database.Sourceยงimpl<'r> Decode<'r, Any> for BigDecimalwhere
BigDecimal: AnyDecode<'r>,
impl<'r> Decode<'r, Any> for BigDecimalwhere
BigDecimal: AnyDecode<'r>,
Sourceยงfn decode(
value: AnyValueRef<'r>,
) -> Result<BigDecimal, Box<dyn Error + Send + Sync>>
fn decode( value: AnyValueRef<'r>, ) -> Result<BigDecimal, Box<dyn Error + Send + Sync>>
Decode a new value of this type using a raw value from the database.
Sourceยงimpl<'r> Decode<'r, Any> for NaiveDateTimewhere
NaiveDateTime: AnyDecode<'r>,
impl<'r> Decode<'r, Any> for NaiveDateTimewhere
NaiveDateTime: AnyDecode<'r>,
Sourceยงfn decode(
value: AnyValueRef<'r>,
) -> Result<NaiveDateTime, Box<dyn Error + Send + Sync>>
fn decode( value: AnyValueRef<'r>, ) -> Result<NaiveDateTime, Box<dyn Error + Send + Sync>>
Decode a new value of this type using a raw value from the database.
Sourceยงimpl<'q> Encode<'q, Any> for &'q [u8]
impl<'q> Encode<'q, Any> for &'q [u8]
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for &'q str
impl<'q> Encode<'q, Any> for &'q str
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for BigDecimalwhere
BigDecimal: AnyEncode<'q>,
impl<'q> Encode<'q, Any> for BigDecimalwhere
BigDecimal: AnyEncode<'q>,
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for DateTime<FixedOffset>
impl<'q> Encode<'q, Any> for DateTime<FixedOffset>
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for DateTime<Local>
impl<'q> Encode<'q, Any> for DateTime<Local>
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for DateTime<Utc>
impl<'q> Encode<'q, Any> for DateTime<Utc>
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for Decimal
impl<'q> Encode<'q, Any> for Decimal
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for Value
impl<'q> Encode<'q, Any> for Value
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for NaiveDate
impl<'q> Encode<'q, Any> for NaiveDate
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for NaiveDateTimewhere
NaiveDateTime: AnyEncode<'q>,
impl<'q> Encode<'q, Any> for NaiveDateTimewhere
NaiveDateTime: AnyEncode<'q>,
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for NaiveTime
impl<'q> Encode<'q, Any> for NaiveTime
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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, Any> for Option<T>where
T: AnyEncode<'q> + 'q,
impl<'q, T> Encode<'q, Any> for Option<T>where
T: AnyEncode<'q> + 'q,
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for String
impl<'q> Encode<'q, Any> for String
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for Vec<u8>
impl<'q> Encode<'q, Any> for Vec<u8>
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for bool
impl<'q> Encode<'q, Any> for bool
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for f32
impl<'q> Encode<'q, Any> for f32
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for f64
impl<'q> Encode<'q, Any> for f64
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for i16
impl<'q> Encode<'q, Any> for i16
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for i32
impl<'q> Encode<'q, Any> for i32
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for i64
impl<'q> Encode<'q, Any> for i64
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for u16
impl<'q> Encode<'q, Any> for u16
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for u32
impl<'q> Encode<'q, Any> for u32
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> Encode<'q, Any> for u64
impl<'q> Encode<'q, Any> for u64
Sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
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> HasArguments<'q> for Any
impl<'q> HasArguments<'q> for Any
type Database = Any
Sourceยงtype Arguments = AnyArguments<'q>
type Arguments = AnyArguments<'q>
The concrete
Arguments
implementation for this database.Sourceยงtype ArgumentBuffer = AnyArgumentBuffer<'q>
type ArgumentBuffer = AnyArgumentBuffer<'q>
The concrete type used as a buffer for arguments while encoding.
Sourceยงimpl<'q> HasStatement<'q> for Any
impl<'q> HasStatement<'q> for Any
Sourceยงimpl<'r> HasValueRef<'r> for Any
impl<'r> HasValueRef<'r> for Any
Sourceยงimpl MigrateDatabase for Any
impl MigrateDatabase for Any
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 Type<Any> for [u8]
impl Type<Any> for [u8]
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for BigDecimal
impl Type<Any> for BigDecimal
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for DateTime<FixedOffset>
impl Type<Any> for DateTime<FixedOffset>
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for DateTime<Local>
impl Type<Any> for DateTime<Local>
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for DateTime<Utc>
impl Type<Any> for DateTime<Utc>
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for Decimal
impl Type<Any> for Decimal
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for Value
impl Type<Any> for Value
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for NaiveDate
impl Type<Any> for NaiveDate
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for NaiveDateTime
impl Type<Any> for NaiveDateTime
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for NaiveTime
impl Type<Any> for NaiveTime
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for String
impl Type<Any> for String
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for Vec<u8>
impl Type<Any> for Vec<u8>
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for bool
impl Type<Any> for bool
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for f32
impl Type<Any> for f32
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for f64
impl Type<Any> for f64
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for i16
impl Type<Any> for i16
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for i32
impl Type<Any> for i32
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for i64
impl Type<Any> for i64
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for str
impl Type<Any> for str
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for u16
impl Type<Any> for u16
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for u32
impl Type<Any> for u32
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยงimpl Type<Any> for u64
impl Type<Any> for u64
Sourceยงfn type_info() -> AnyTypeInfo
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl HasStatementCache for Any
Auto Trait Implementationsยง
impl Freeze for Any
impl RefUnwindSafe for Any
impl Send for Any
impl Sync for Any
impl Unpin for Any
impl UnwindSafe for Any
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