pub trait Encode<'q, DB: Database> {
    // Required method
    fn encode_by_ref(
        &self,
        buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer,
    ) -> IsNull;
    // Provided methods
    fn encode(
        self,
        buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer,
    ) -> IsNull
       where Self: Sized { ... }
    fn produces(&self) -> Option<DB::TypeInfo> { ... }
    fn size_hint(&self) -> usize { ... }
}Expand description
Encode a single value to be sent to the database.
Required Methods§
sourcefn encode_by_ref(
    &self,
    buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer,
) -> IsNull
 
fn encode_by_ref( &self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer, ) -> IsNull
Writes the value of self into buf without moving self.
Where possible, make use of encode instead as it can take advantage of re-using
memory.
Provided Methods§
sourcefn 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::TypeInfo>
fn size_hint(&self) -> usize
Implementations on Foreign Types§
source§impl Encode<'_, Mssql> for BigDecimal
Available on crate feature mssql only. 
impl Encode<'_, Mssql> for BigDecimal
Available on crate feature 
mssql only.source§impl Encode<'_, Mssql> for NaiveDate
Available on crate feature mssql only. 
impl Encode<'_, Mssql> for NaiveDate
Available on crate feature 
mssql only.Encodes Date objects for transfer over the wire
source§impl Encode<'_, Mssql> for NaiveDateTime
Available on crate feature mssql only. 
impl Encode<'_, Mssql> for NaiveDateTime
Available on crate feature 
mssql only.Encodes DateTime objects for transfer over the wire
source§impl Encode<'_, Mssql> for NaiveTime
Available on crate feature mssql only. 
impl Encode<'_, Mssql> for NaiveTime
Available on crate feature 
mssql only.Encodes Time objects for transfer over the wire
source§impl Encode<'_, MySql> for BigDecimal
Available on crate feature mysql only. 
impl Encode<'_, MySql> for BigDecimal
Available on crate feature 
mysql only.source§impl Encode<'_, MySql> for DateTime<Local>
Available on crate feature mysql only. 
impl Encode<'_, MySql> for DateTime<Local>
Available on crate feature 
mysql only.Note: assumes the connection’s time_zone is set to +00:00 (UTC).
source§impl Encode<'_, MySql> for DateTime<Utc>
Available on crate feature mysql only. 
impl Encode<'_, MySql> for DateTime<Utc>
Available on crate feature 
mysql only.Note: assumes the connection’s time_zone is set to +00:00 (UTC).
source§impl Encode<'_, MySql> for NaiveDateTime
Available on crate feature mysql only. 
impl Encode<'_, MySql> for NaiveDateTime
Available on crate feature 
mysql only.source§impl Encode<'_, MySql> for OffsetDateTime
Available on crate feature mysql only. 
impl Encode<'_, MySql> for OffsetDateTime
Available on crate feature 
mysql only.source§impl Encode<'_, MySql> for PrimitiveDateTime
Available on crate feature mysql only. 
impl Encode<'_, MySql> for PrimitiveDateTime
Available on crate feature 
mysql only.source§impl Encode<'_, MySql> for Hyphenated
Available on crate feature mysql only. 
impl Encode<'_, MySql> for Hyphenated
Available on crate feature 
mysql only.source§impl Encode<'_, Postgres> for &str
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for &str
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for &[u8]
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for &[u8]
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for Cow<'_, str>
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for Cow<'_, str>
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for IpNetwork
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for IpNetwork
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for bool
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for bool
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for f32
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for f32
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for f64
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for f64
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for i8
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for i8
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for i16
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for i16
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for i32
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for i32
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for i64
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for i64
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for String
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for String
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for Vec<u8>
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for Vec<u8>
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for Duration
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for Duration
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for BigDecimal
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for BigDecimal
Available on crate feature 
postgres only.§Panics
If this BigDecimal cannot be represented by PgNumeric.
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for BitVec
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for BitVec
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for NaiveDate
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for NaiveDate
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for NaiveDateTime
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for NaiveDateTime
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for NaiveTime
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for NaiveTime
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for MacAddress
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for MacAddress
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for Decimal
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for Decimal
Available on crate feature 
postgres only.§Panics
If this Decimal cannot be represented by PgNumeric.
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for Date
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for Date
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for Duration
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for Duration
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for OffsetDateTime
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for OffsetDateTime
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for PrimitiveDateTime
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for PrimitiveDateTime
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for Time
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for Time
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Postgres> for Uuid
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for Uuid
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl Encode<'_, Postgres> for Duration
Available on crate feature postgres only. 
impl Encode<'_, Postgres> for Duration
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl Encode<'_, Sqlite> for BigDecimal
Available on crate feature sqlite only. 
impl Encode<'_, Sqlite> for BigDecimal
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl Encode<'_, Sqlite> for NaiveDate
Available on crate feature sqlite only. 
impl Encode<'_, Sqlite> for NaiveDate
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl Encode<'_, Sqlite> for NaiveDateTime
Available on crate feature sqlite only. 
impl Encode<'_, Sqlite> for NaiveDateTime
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl Encode<'_, Sqlite> for NaiveTime
Available on crate feature sqlite only. 
impl Encode<'_, Sqlite> for NaiveTime
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl Encode<'_, Sqlite> for Decimal
Available on crate feature sqlite only. 
impl Encode<'_, Sqlite> for Decimal
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl Encode<'_, Sqlite> for Date
Available on crate feature sqlite only. 
impl Encode<'_, Sqlite> for Date
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl Encode<'_, Sqlite> for OffsetDateTime
Available on crate feature sqlite only. 
impl Encode<'_, Sqlite> for OffsetDateTime
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl Encode<'_, Sqlite> for PrimitiveDateTime
Available on crate feature sqlite only. 
impl Encode<'_, Sqlite> for PrimitiveDateTime
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl Encode<'_, Sqlite> for Time
Available on crate feature sqlite only. 
impl Encode<'_, Sqlite> for Time
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl<'db> Encode<'db, Postgres> for IpAddr
Available on crate feature postgres only. 
impl<'db> Encode<'db, Postgres> for IpAddr
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl<'q> Encode<'q, Any> for &'q str
 
impl<'q> Encode<'q, Any> for &'q str
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for &'q [u8]
 
impl<'q> Encode<'q, Any> for &'q [u8]
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for bool
 
impl<'q> Encode<'q, Any> for bool
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for f32
 
impl<'q> Encode<'q, Any> for f32
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for f64
 
impl<'q> Encode<'q, Any> for f64
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for i16
 
impl<'q> Encode<'q, Any> for i16
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for i32
 
impl<'q> Encode<'q, Any> for i32
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for i64
 
impl<'q> Encode<'q, Any> for i64
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for String
 
impl<'q> Encode<'q, Any> for String
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for Vec<u8>
 
impl<'q> Encode<'q, Any> for Vec<u8>
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for BigDecimalwhere
    BigDecimal: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for BigDecimalwhere
    BigDecimal: AnyEncode<'q>,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for DateTime<Local>
 
impl<'q> Encode<'q, Any> for DateTime<Local>
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for DateTime<Utc>
 
impl<'q> Encode<'q, Any> for DateTime<Utc>
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for NaiveDate
 
impl<'q> Encode<'q, Any> for NaiveDate
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for NaiveDateTimewhere
    NaiveDateTime: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for NaiveDateTimewhere
    NaiveDateTime: AnyEncode<'q>,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for NaiveTime
 
impl<'q> Encode<'q, Any> for NaiveTime
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Any> for Decimal
 
impl<'q> Encode<'q, Any> for Decimal
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for &'q str
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for &'q str
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for &'q [u8]
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for &'q [u8]
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for Cow<'q, str>
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for Cow<'q, str>
Available on crate feature 
sqlite only.fn encode(self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for bool
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for bool
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for f32
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for f32
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for f64
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for f64
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for i8
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for i8
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for i16
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for i16
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for i32
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for i32
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for i64
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for i64
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for u8
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for u8
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for u16
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for u16
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for u32
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for u32
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for String
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for String
Available on crate feature 
sqlite only.fn encode(self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for Vec<u8>
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for Vec<u8>
Available on crate feature 
sqlite only.fn encode(self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for Hyphenated
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for Hyphenated
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
source§impl<'q> Encode<'q, Sqlite> for Uuid
Available on crate feature sqlite only. 
impl<'q> Encode<'q, Sqlite> for Uuid
Available on crate feature 
sqlite only.fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
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,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
source§impl<'q, T> Encode<'q, MySql> for Option<T>
Available on crate feature mysql only. 
impl<'q, T> Encode<'q, MySql> for Option<T>
Available on crate feature 
mysql only.fn produces(&self) -> Option<<MySql as Database>::TypeInfo>
fn encode(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<'q, T> Encode<'q, Postgres> for &[T]
Available on crate feature postgres only. 
impl<'q, T> Encode<'q, Postgres> for &[T]
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl<'q, T> Encode<'q, Postgres> for Option<T>
Available on crate feature postgres only. 
impl<'q, T> Encode<'q, Postgres> for Option<T>
Available on crate feature 
postgres only.fn produces(&self) -> Option<<Postgres as Database>::TypeInfo>
fn encode( self, buf: &mut <Postgres as HasArguments<'q>>::ArgumentBuffer, ) -> IsNull
fn encode_by_ref( &self, buf: &mut <Postgres as HasArguments<'q>>::ArgumentBuffer, ) -> IsNull
fn size_hint(&self) -> usize
source§impl<'q, T> Encode<'q, Postgres> for Vec<T>
Available on crate feature postgres only. 
impl<'q, T> Encode<'q, Postgres> for Vec<T>
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl<'q, T> Encode<'q, Sqlite> for Option<T>
Available on crate feature sqlite only. 
impl<'q, T> Encode<'q, Sqlite> for Option<T>
Available on crate feature 
sqlite only.fn produces(&self) -> Option<<Sqlite as Database>::TypeInfo>
fn encode( self, buf: &mut <Sqlite as HasArguments<'q>>::ArgumentBuffer, ) -> IsNull
fn encode_by_ref( &self, buf: &mut <Sqlite as HasArguments<'q>>::ArgumentBuffer, ) -> IsNull
fn size_hint(&self) -> usize
source§impl<'q, T, DB: Database> Encode<'q, DB> for &Twhere
    T: Encode<'q, DB>,
 
impl<'q, T, DB: Database> Encode<'q, DB> for &Twhere
    T: Encode<'q, DB>,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode_by_ref( &self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer, ) -> IsNull
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
source§impl<'q, T, const N: usize> Encode<'q, Postgres> for [T; N]
Available on crate feature postgres only. 
impl<'q, T, const N: usize> Encode<'q, Postgres> for [T; N]
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
source§impl<'q, T: 'q + Encode<'q, Mssql>> Encode<'q, Mssql> for Option<T>
Available on crate feature mssql only. 
impl<'q, T: 'q + Encode<'q, Mssql>> Encode<'q, Mssql> for Option<T>
Available on crate feature 
mssql only.source§impl<T> Encode<'_, Mssql> for DateTime<T>where
    T: TimeZone,
Available on crate feature mssql only. 
impl<T> Encode<'_, Mssql> for DateTime<T>where
    T: TimeZone,
Available on crate feature 
mssql only.source§impl<Tz: TimeZone> Encode<'_, Postgres> for DateTime<Tz>
Available on crate feature postgres only. 
impl<Tz: TimeZone> Encode<'_, Postgres> for DateTime<Tz>
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§impl<Tz: TimeZone> Encode<'_, Sqlite> for DateTime<Tz>
Available on crate feature sqlite only. 
impl<Tz: TimeZone> Encode<'_, Sqlite> for DateTime<Tz>
Available on crate feature 
sqlite only.fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
source§impl<const N: usize> Encode<'_, Postgres> for [u8; N]
Available on crate feature postgres only. 
impl<const N: usize> Encode<'_, Postgres> for [u8; N]
Available on crate feature 
postgres only.fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
Implementors§
impl Encode<'_, Postgres> for Oid
Available on crate feature 
postgres only.impl Encode<'_, Postgres> for PgInterval
Available on crate feature 
postgres only.impl Encode<'_, Postgres> for PgLQuery
Available on crate feature 
postgres only.impl Encode<'_, Postgres> for PgLTree
Available on crate feature 
postgres only.impl Encode<'_, Postgres> for PgMoney
Available on crate feature 
postgres only.impl Encode<'_, Postgres> for PgTimeTz<NaiveTime, FixedOffset>
Available on crate feature 
postgres only.impl Encode<'_, Postgres> for PgTimeTz<Time, UtcOffset>
Available on crate feature 
postgres only.impl<'q> Encode<'q, Any> for Value
impl<'q, DB> Encode<'q, DB> for JsonValue
Available on crate feature 
json only.impl<'q, T> Encode<'q, Mssql> for Json<T>where
    T: Serialize,
Available on crate feature 
mssql only.impl<'q, T> Encode<'q, Postgres> for PgRange<T>
Available on crate feature 
postgres only.impl<'q, T> Encode<'q, Postgres> for Json<T>where
    T: Serialize,
Available on crate feature 
postgres only.impl<T> Encode<'_, MySql> for Json<T>where
    T: Serialize,
Available on crate feature 
mysql only.impl<T> Encode<'_, Sqlite> for Json<T>where
    T: Serialize,
Available on crate feature 
sqlite only.