musli_core::en

Derive Macro Encode

Source
#[derive(Encode)]
{
    // Attributes available to this derive:
    #[musli]
}
Expand description

Derive which automatically implements the Encode trait.

See the derives module for detailed documentation.

ยงExamples

use musli::Encode;

#[derive(Encode)]
struct MyType {
    data: [u8; 128],
}