diesel_as_jsonb

Crates.iodiesel_as_jsonb
lib.rsdiesel_as_jsonb
version1.0.1
sourcesrc
created_at2018-11-14 15:28:36.791469
updated_at2023-11-11 09:09:23.646926
descriptionUse your structs as Jsonb with diesel and PG
homepage
repositoryhttps://github.com/terry90/diesel_as_jsonb
max_upload_size
id96643
size4,649
Terry Raimondo (terry90)

documentation

README

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
}
Commit count: 19

cargo fmt