macro_rules! codec_struct {
($ty:ident { $($field:ident),* $(,)? }) => { ... };
($ty:ident { $($field:ident),* $(,)? } check $check:path) => { ... };
}Expand description
Encode and Decode from one field list; check names a fn(&T) -> Result<(), String>.