automate
macro_rules! deserialize { ($data:ident) => { ... }; ($data:ident as $type:ty) => { ... }; }