core-json-derive 0.1.2

`derive` macros for `core-json-traits`
Documentation

core-json Derive

A macro to automatically derive JsonDeserialize from core-json-traits.

Usage

This crate can be used quite directly as follows.

#[derive(core_json_derive::JsonDeserialize)]
struct MyStruct {
  abc_def: Vec<u8>,
}

We do support deserializing fields under a distinct name with the rename attribute.

#[derive(core_json_derive::JsonDeserialize)]
struct MyStruct {
  #[rename("abcDef")]
  abc_def: Vec<u8>,
}