Module deserialize

Source
Expand description

Types and traits related to deserializing values from the database

Traits§

FromSql
Deserialize a single field of a given SQL type.
FromSqlRow
Deserialize a database row into a rust data structure
FromStaticSqlRow
A helper trait to deserialize a statically sized row into a tuple
Queryable
Trait indicating that a record can be queried from the database.
QueryableByName
Deserializes the result of a query constructed with sql_query.
StaticallySizedRow
A marker trait indicating that the corresponding type consumes a static at compile time known number of field

Type Aliases§

Result
A specialized result type representing the result of deserializing a value from the database.

Derive Macros§

FromSqlRow
Implements Queryable for types that correspond to a single SQL type. The type must implement FromSql.
Queryable
Implements Queryable to load the result of statically typed queries
QueryableByName
Implements QueryableByName for untyped sql queries, such as that one generated by sql_query