bloom42_diesel_as_jsonb 0.1.2

Use your structs as Jsonb with diesel and PG
Documentation

Diesel As JSONB (for PG)

Usage

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

struct Wrapper {
    things: Vec<Something> // For JSONB[]
    thing: Something // For JSONB
}