#[derive(Decode)]
{
// Attributes available to this derive:
#[musli]
}
Expand description
Derive which automatically implements the Decode trait.
See the derives module for detailed documentation.
ยงExamples
use musli_core::Decode;
#[derive(Decode)]
struct MyType {
data: [u8; 128],
}A crate which renames musli_core, such as with musli_core01 = { package = "musli-core", .. } in Cargo.toml, has to name it with #[musli(crate = musli_core01)].