Derive Macro tari_infra_derive::Hashable[][src]

#[derive(Hashable)]
{
    // Attributes available to this derive:
    #[digest]
    #[Hashable]
    #[ExtendBytes]
}
Expand description

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 = “”] with being the included digest the macro should use to impl Hashable individual fields can be skipped by providing them with: #[Hashable(Ignore)]