#[derive(AsJsonb)]]
struct Something {
thing: String,
}
struct Wrapper {
things: Vec<Something> // For field type Array<Jsonb>
thing: Something // For field type Jsonb
}
ocudigital / diesel_as_jsonb Goto Github PK
View Code? Open in Web Editor NEWThis project forked from terry90/diesel_as_jsonb
Allows struct to be used as jsonb with diesel and PG
License: MIT License