isomdl 0.2.0

ISO mDL implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use isomdl::{
    definitions::traits::FromJson,
    macros::{FromJson, ToCbor},
};

#[derive(FromJson, ToCbor)]
pub struct NewNamespace {
    field: String,
}

#[test]
fn new_namespace() {
    let json = serde_json::json!({
        "field": "value"
    });

    NewNamespace::from_json(&json).unwrap();
}