diesel::deserialize

Trait FromSql

Source
pub trait FromSql<A, DB: Backend>: Sized {
    // Required method
    fn from_sql(bytes: DB::RawValue<'_>) -> Result<Self>;

    // Provided method
    fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self> { ... }
}
Expand description

Deserialize a single field of a given SQL type.

When possible, implementations of this trait should prefer to use an existing implementation, rather than reading from bytes. (For example, if you are implementing this for an enum which is represented as an integer in the database, prefer i32::from_sql(bytes) (or the explicit form <i32 as FromSql<Integer, DB>>::from_sql(bytes)) over reading from bytes directly)

Types which implement this trait should also have #[derive(FromSqlRow)]

§Backend specific details

  • For PostgreSQL, the bytes will be sent using the binary protocol, not text.
  • For SQLite, the actual type of DB::RawValue is private API. All implementations of this trait must be written in terms of an existing primitive.
  • For MySQL, the value of bytes will depend on the return value of type_metadata for the given SQL type. See MysqlType for details.
  • For third party backends, consult that backend’s documentation.

§Examples

Most implementations of this trait will be defined in terms of an existing implementation.

#[repr(i32)]
#[derive(Debug, Clone, Copy, FromSqlRow)]
pub enum MyEnum {
    A = 1,
    B = 2,
}

impl<DB> FromSql<Integer, DB> for MyEnum
where
    DB: Backend,
    i32: FromSql<Integer, DB>,
{
    fn from_sql(bytes: DB::RawValue<'_>) -> deserialize::Result<Self> {
        match i32::from_sql(bytes)? {
            1 => Ok(MyEnum::A),
            2 => Ok(MyEnum::B),
            x => Err(format!("Unrecognized variant {}", x).into()),
        }
    }
}

Required Methods§

Source

fn from_sql(bytes: DB::RawValue<'_>) -> Result<Self>

See the trait documentation.

Provided Methods§

Source

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values.

The default implementation returns an UnexpectedNullError for an encountered null value and calls Self::from_sql otherwise

If your custom type supports null values you need to provide a custom implementation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromSql<BigInt, Mysql> for i64

Available on crate feature mysql_backend only.
Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<BigInt, Pg> for i64

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<BigInt, Sqlite> for i64

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Binary, Mysql> for *const [u8]

Available on crate feature mysql_backend only.

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of Vec<u8>, but don’t want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Binary, Pg> for *const [u8]

Available on crate feature postgres_backend only.

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of Vec<u8>, but don’t want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Binary, Sqlite> for *const [u8]

Available on crate feature sqlite only.

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of Vec<u8>, but don’t want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

Source§

fn from_sql(bytes: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Bool, Mysql> for bool

Available on crate feature mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Bool, Pg> for bool

Available on crate feature postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Bool, Sqlite> for bool

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<CChar, Pg> for u8

Available on crate feature postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Cidr, Pg> for IpNet

Available on crate features ipnet-address and postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Cidr, Pg> for IpNetwork

Available on crate features network-address and postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Citext, Pg> for String

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Date, Mysql> for NaiveDate

Available on crate features chrono and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Date, Mysql> for Date

Available on crate features time and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Date, Pg> for NaiveDate

Available on crate features chrono and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Date, Pg> for Date

Available on crate features time and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Date, Sqlite> for NaiveDate

Available on crate features chrono and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Date, Sqlite> for Date

Available on crate features time and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Date, Sqlite> for String

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Datetime, Mysql> for NaiveDateTime

Available on crate features chrono and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Datetime, Mysql> for OffsetDateTime

Available on crate features time and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Datetime, Mysql> for PrimitiveDateTime

Available on crate features time and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Double, Mysql> for f64

Available on crate feature mysql_backend only.
Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Double, Pg> for f64

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Double, Sqlite> for f64

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Float, Mysql> for f32

Available on crate feature mysql_backend only.
Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Float, Pg> for f32

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Float, Sqlite> for f32

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Inet, Pg> for IpNet

Available on crate features ipnet-address and postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Inet, Pg> for IpNetwork

Available on crate features network-address and postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Integer, Mysql> for i32

Available on crate feature mysql_backend only.
Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Integer, Pg> for i32

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Integer, Sqlite> for i32

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Interval, Pg> for Duration

Available on crate features chrono and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Json, Mysql> for Value

Available on crate features serde_json and mysql_backend only.
Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Json, Pg> for Value

Available on crate features serde_json and postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Jsonb, Pg> for Value

Available on crate features serde_json and postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<MacAddr, Pg> for [u8; 6]

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Numeric, Mysql> for BigDecimal

Available on crate features numeric and mysql_backend only.
Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Numeric, Pg> for BigDecimal

Available on crate features numeric and postgres_backend only.
Source§

fn from_sql(numeric: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Numeric, Sqlite> for BigDecimal

Available on crate features numeric and sqlite only.
Source§

fn from_sql(bytes: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Oid, Pg> for u32

Available on crate feature postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<SmallInt, Mysql> for i16

Available on crate feature mysql_backend only.
Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<SmallInt, Pg> for i16

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<SmallInt, Sqlite> for i16

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Text, Mysql> for *const str

Available on crate feature mysql_backend only.

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of String, but don’t want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Text, Pg> for *const str

Available on crate feature postgres_backend only.

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of String, but don’t want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Text, Sqlite> for *const str

Available on crate feature sqlite only.

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of String, but don’t want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Time, Mysql> for NaiveTime

Available on crate features chrono and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Time, Mysql> for Time

Available on crate features time and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Time, Pg> for NaiveTime

Available on crate features chrono and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Time, Pg> for Time

Available on crate features time and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Time, Sqlite> for NaiveTime

Available on crate features chrono and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Time, Sqlite> for Time

Available on crate features time and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Time, Sqlite> for String

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Timestamp, Mysql> for NaiveDateTime

Available on crate features chrono and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamp, Mysql> for OffsetDateTime

Available on crate features time and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamp, Mysql> for PrimitiveDateTime

Available on crate features time and mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamp, Pg> for NaiveDateTime

Available on crate features chrono and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamp, Pg> for PrimitiveDateTime

Available on crate features time and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamp, Pg> for SystemTime

Available on crate feature postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamp, Sqlite> for NaiveDateTime

Available on crate features chrono and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamp, Sqlite> for PrimitiveDateTime

Available on crate features time and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamp, Sqlite> for String

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Pg> for DateTime<Local>

Available on crate features chrono and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Pg> for DateTime<Utc>

Available on crate features chrono and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Pg> for NaiveDateTime

Available on crate features chrono and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Pg> for OffsetDateTime

Available on crate features time and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Pg> for PrimitiveDateTime

Available on crate features time and postgres_backend only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Sqlite> for DateTime<Local>

Available on crate features chrono and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Sqlite> for DateTime<Utc>

Available on crate features chrono and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Sqlite> for NaiveDateTime

Available on crate features chrono and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Sqlite> for OffsetDateTime

Available on crate features time and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Sqlite> for PrimitiveDateTime

Available on crate features time and sqlite only.
Source§

fn from_sql(value: <Sqlite as Backend>::RawValue<'_>) -> Result<Self>

Source§

impl FromSql<Timestamptz, Sqlite> for String

Available on crate feature sqlite only.
Source§

fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>

Source§

impl FromSql<TinyInt, Mysql> for i8

Available on crate feature mysql_backend only.
Source§

fn from_sql(value: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Unsigned<BigInt>, Mysql> for u64

Available on crate feature mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Unsigned<Integer>, Mysql> for u32

Available on crate feature mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Unsigned<SmallInt>, Mysql> for u16

Available on crate feature mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Unsigned<TinyInt>, Mysql> for u8

Available on crate feature mysql_backend only.
Source§

fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>

Source§

impl FromSql<Uuid, Pg> for Uuid

Available on crate features uuid and postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<'a, T, ST, DB> FromSql<ST, DB> for Cow<'a, T>
where T: 'a + ToOwned + ?Sized, DB: Backend, T::Owned: FromSql<ST, DB>,

Source§

fn from_sql(bytes: DB::RawValue<'_>) -> Result<Self>

Source§

impl<ST, DB> FromSql<ST, DB> for String
where DB: Backend, *const str: FromSql<ST, DB>,

Source§

fn from_sql(bytes: DB::RawValue<'_>) -> Result<Self>

Source§

impl<ST, DB> FromSql<ST, DB> for Vec<u8>
where DB: Backend, *const [u8]: FromSql<ST, DB>,

Source§

fn from_sql(bytes: DB::RawValue<'_>) -> Result<Self>

Source§

impl<T0, ST0> FromSql<Record<(ST0,)>, Pg> for (T0,)
where T0: FromSql<ST0, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, ST0, ST1> FromSql<Record<(ST0, ST1)>, Pg> for (T0, T1)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, ST0, ST1, ST2> FromSql<Record<(ST0, ST1, ST2)>, Pg> for (T0, T1, T2)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, ST0, ST1, ST2, ST3> FromSql<Record<(ST0, ST1, ST2, ST3)>, Pg> for (T0, T1, T2, T3)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, ST0, ST1, ST2, ST3, ST4> FromSql<Record<(ST0, ST1, ST2, ST3, ST4)>, Pg> for (T0, T1, T2, T3, T4)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, ST0, ST1, ST2, ST3, ST4, ST5> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5)>, Pg> for (T0, T1, T2, T3, T4, T5)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, ST0, ST1, ST2, ST3, ST4, ST5, ST6> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6)>, Pg> for (T0, T1, T2, T3, T4, T5, T6)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>, T23: FromSql<ST23, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>, T23: FromSql<ST23, Pg>, T24: FromSql<ST24, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>, T23: FromSql<ST23, Pg>, T24: FromSql<ST24, Pg>, T25: FromSql<ST25, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>, T23: FromSql<ST23, Pg>, T24: FromSql<ST24, Pg>, T25: FromSql<ST25, Pg>, T26: FromSql<ST26, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>, T23: FromSql<ST23, Pg>, T24: FromSql<ST24, Pg>, T25: FromSql<ST25, Pg>, T26: FromSql<ST26, Pg>, T27: FromSql<ST27, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27, ST28> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27, ST28)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>, T23: FromSql<ST23, Pg>, T24: FromSql<ST24, Pg>, T25: FromSql<ST25, Pg>, T26: FromSql<ST26, Pg>, T27: FromSql<ST27, Pg>, T28: FromSql<ST28, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27, ST28, ST29> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27, ST28, ST29)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>, T23: FromSql<ST23, Pg>, T24: FromSql<ST24, Pg>, T25: FromSql<ST25, Pg>, T26: FromSql<ST26, Pg>, T27: FromSql<ST27, Pg>, T28: FromSql<ST28, Pg>, T29: FromSql<ST29, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27, ST28, ST29, ST30> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27, ST28, ST29, ST30)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>, T23: FromSql<ST23, Pg>, T24: FromSql<ST24, Pg>, T25: FromSql<ST25, Pg>, T26: FromSql<ST26, Pg>, T27: FromSql<ST27, Pg>, T28: FromSql<ST28, Pg>, T29: FromSql<ST29, Pg>, T30: FromSql<ST30, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27, ST28, ST29, ST30, ST31> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15, ST16, ST17, ST18, ST19, ST20, ST21, ST22, ST23, ST24, ST25, ST26, ST27, ST28, ST29, ST30, ST31)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>, T16: FromSql<ST16, Pg>, T17: FromSql<ST17, Pg>, T18: FromSql<ST18, Pg>, T19: FromSql<ST19, Pg>, T20: FromSql<ST20, Pg>, T21: FromSql<ST21, Pg>, T22: FromSql<ST22, Pg>, T23: FromSql<ST23, Pg>, T24: FromSql<ST24, Pg>, T25: FromSql<ST25, Pg>, T26: FromSql<ST26, Pg>, T27: FromSql<ST27, Pg>, T28: FromSql<ST28, Pg>, T29: FromSql<ST29, Pg>, T30: FromSql<ST30, Pg>, T31: FromSql<ST31, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T, ST> FromSql<Array<ST>, Pg> for Vec<T>
where T: FromSql<ST, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T, ST> FromSql<Range<ST>, Pg> for (Bound<T>, Bound<T>)
where T: FromSql<ST, Pg>,

Available on crate feature postgres_backend only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

Source§

impl<T, ST, DB> FromSql<Nullable<ST>, DB> for Option<T>
where T: FromSql<ST, DB>, DB: Backend, ST: SqlType<IsNull = NotNull>,

Source§

fn from_sql(bytes: DB::RawValue<'_>) -> Result<Self>

Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

Implementors§

Source§

impl FromSql<Date, Mysql> for MysqlTime

Available on crate feature mysql_backend only.
Source§

impl FromSql<Date, Pg> for PgDate

Available on crate feature postgres_backend only.
Source§

impl FromSql<Datetime, Mysql> for MysqlTime

Available on crate feature mysql_backend only.
Source§

impl FromSql<Interval, Pg> for PgInterval

Available on crate feature postgres_backend only.
Source§

impl FromSql<Money, Pg> for PgMoney

Available on crate feature postgres_backend only.
Source§

impl FromSql<Numeric, Pg> for PgNumeric

Available on crate feature postgres_backend only.
Source§

impl FromSql<Time, Mysql> for MysqlTime

Available on crate feature mysql_backend only.
Source§

impl FromSql<Time, Pg> for PgTime

Available on crate feature postgres_backend only.
Source§

impl FromSql<Timestamp, Mysql> for MysqlTime

Available on crate feature mysql_backend only.
Source§

impl FromSql<Timestamp, Pg> for PgTimestamp

Available on crate feature postgres_backend only.
Source§

impl FromSql<Timestamptz, Pg> for PgTimestamp

Available on crate feature postgres_backend only.
Source§

impl<'a, DB> FromSql<Text, DB> for MigrationVersion<'a>
where String: FromSql<Text, DB>, DB: Backend,