diesel_as_jsonb icon indicating copy to clipboard operation
diesel_as_jsonb copied to clipboard

Allows struct to be used as jsonb with diesel and PG

Diesel As JSONB (for PG)

Usage

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

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