Crate tari_infra_derive[−][src]
Derive Macros
This macro will provide a To_bytes implementation to the a given struct To use this provide #[derive(ExtendBytes)] to the struct digest the macro should use to impl Hashable individual fields can be skipped by providing them with: #[ExtendBytes(Ignore)]
This macro will provide a Hashable implementation to the a given struct using a Digest implementing Hash function
To use this provide #[derive(Hashable)] to the struct and #[Digest = “
This macro will produce the 4 trait implementations required for an hashable struct to be sorted