Crate scale_decode_derive
source ·Derive Macros
- The
DecodeAsType
derive macro can be used to implementDecodeAsType
on structs and enums whose fields all implementDecodeAsType
. Under the hood, the macro generatesscale_decode::visitor::Visitor
andscale_decode::IntoVisitor
implementations for each type (as well as an associatedVisitor
struct), which in turn means that the type will automatically implementscale_decode::DecodeAsType
.