Crate scale_decode_derive
source ·Derive Macros
- The
DecodeAsTypederive macro can be used to implementDecodeAsTypeon structs and enums whose fields all implementDecodeAsType. Under the hood, the macro generatesscale_decode::visitor::Visitorandscale_decode::IntoVisitorimplementations for each type (as well as an associatedVisitorstruct), which in turn means that the type will automatically implementscale_decode::DecodeAsType.