Crates.io | postgres-json-derive |
lib.rs | postgres-json-derive |
version | 0.1.0 |
source | src |
created_at | 2023-06-07 17:16:51.94277 |
updated_at | 2023-06-07 17:16:51.94277 |
description | Derive macro for implementing ToSql and FromSql for a struct |
homepage | |
repository | |
max_upload_size | |
id | 884899 |
size | 3,258 |
Postgres derive based on this issue
use postgres_json_derive::{ToSqlJson, FromSqlJson};
#[derive(ToSqlJson, FromSqlJson)]
struct Horizon {
zero: String,
dawn: i32,
}