#[derive(ToBytes)] { // Attributes available to this derive: #[nuts_bytes] }
Derive macro implementation of the ToBytes trait.
ToBytes
This derive macro generates a ToBytes implementation for struct and enum types. union types are currently not supported.
struct
enum
union