jsonld-expandable 0.25.0

Derive macro for JSON-LD `Expandable` types (see jsonld-expandable-core for runtime traits)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use jsonld_expandable::Expandable;

#[derive(Expandable)]
#[jsonld(type = "https://example.com/Thing")]
pub struct VecWithoutNested {
    #[jsonld(id)]
    pub id: String,

    #[jsonld(property = "https://example.com/items", vec)]
    pub items: Vec<String>,
}

fn main() {}