Crate serde_db [−] [src]
Support for deserializing database resultsets and rows into rust types.
Support for serialization is planned.
This crate uses serde, so it is fast and cheap.
The target types for deserialization need to implement serde::de::Deserialize
,
what is automatically given for all elementary rust types and easily achieved for
custom structs (using #[derive(Deserialize)]
).
The deserialization of serde_db
is designed such that
implementing database drivers can make use of it without impact on their customers.
They only need to enrich their implementations of resultset and row
with an additional method which delegates to the respective method provided
by this crate.
Modules
de |
Support for deserializing database resultsets, or individual database rows, or individual database values, into rust types. |