/diesel_as_jsonb

Allows struct to be used as jsonb with diesel and PG

Primary LanguageRustMIT LicenseMIT

Diesel As JSONB (for PG)

Usage

#[derive(AsJsonb)]
struct Something {
    thing: String,
}

struct Wrapper {
    things: Vec<Something> // For field type Array<Jsonb>
    thing: Something // For field type Jsonb
}