#[derive(Message)]
{
// Attributes available to this derive:
#[digest]
#[field]
}
Available on crate feature
veriform_derive only.Expand description
Derive the Message trait for an enum or struct.
When using this macro, every field in a struct or every variant of an
enum must have one of the following attributes:
#[field(...)]: schema information for a field in a Veriform message. For more information on the syntax, see thefield::Attrsdocs.#[digest(...)]: (structonly) support for storing a computed Verihash digest inside of astructcontaining message fields. Thedigestfield MUST be the last in the message. For more information, see thedigest::Attrsdocs.
See tests/derive.rs for usage examples.