macro_rules! record {
($(#[$m:meta])* pub struct $name:ident { $( $(#[$fm:meta])* pub $f:ident : $t:ty ),* $(,)? }) => { ... };
}Expand description
declare a record: the struct (Clone, Debug, Default, PartialEq) and its Json / Field mapping; the JSON member names are the field names