Trait holochain::core::HashableContent
source · [−]pub trait HashableContent {
type HashType: HashType;
fn hash_type(&self) -> Self::HashType;
fn hashable_content(&self) -> HashableContentBytes;
}
Expand description
Any implementor of HashableContent may be used in a HoloHashed to pair data with its HoloHash representation. It also has an associated HashType.
Required Associated Types
Required Methods
sourcefn hashable_content(&self) -> HashableContentBytes
fn hashable_content(&self) -> HashableContentBytes
Return a subset of the content, either as SerializedBytes “content”, which will be used to compute the hash, or as an already precomputed hash which will be used directly
Implementations on Foreign Types
impl HashableContent for Dna
impl HashableContent for Dna
type HashType = Action
fn hash_type(&self) -> <Dna as HashableContent>::HashType
fn hashable_content(&self) -> HashableContentBytes
impl HashableContent for CloseChain
impl HashableContent for CloseChain
type HashType = Action
fn hash_type(&self) -> <CloseChain as HashableContent>::HashType
fn hashable_content(&self) -> HashableContentBytes
impl HashableContent for Entry
impl HashableContent for Entry
type HashType = Entry
fn hash_type(&self) -> <Entry as HashableContent>::HashType
fn hashable_content(&self) -> HashableContentBytes
impl HashableContent for AgentValidationPkg
impl HashableContent for AgentValidationPkg
type HashType = Action
fn hash_type(&self) -> <AgentValidationPkg as HashableContent>::HashType
fn hashable_content(&self) -> HashableContentBytes
impl HashableContent for Delete<RateWeight>
impl HashableContent for Delete<RateWeight>
type HashType = Action
fn hash_type(&self) -> <Delete<RateWeight> as HashableContent>::HashType
fn hashable_content(&self) -> HashableContentBytes
impl HashableContent for Action
impl HashableContent for Action
type HashType = Action
fn hash_type(&self) -> <Action as HashableContent>::HashType
fn hashable_content(&self) -> HashableContentBytes
impl HashableContent for InitZomesComplete
impl HashableContent for InitZomesComplete
type HashType = Action
fn hash_type(&self) -> <InitZomesComplete as HashableContent>::HashType
fn hashable_content(&self) -> HashableContentBytes
impl HashableContent for Create<EntryRateWeight>
impl HashableContent for Create<EntryRateWeight>
type HashType = Action
fn hash_type(&self) -> <Create<EntryRateWeight> as HashableContent>::HashType
fn hashable_content(&self) -> HashableContentBytes
impl HashableContent for Update<EntryRateWeight>
impl HashableContent for Update<EntryRateWeight>
type HashType = Action
fn hash_type(&self) -> <Update<EntryRateWeight> as HashableContent>::HashType
fn hashable_content(&self) -> HashableContentBytes
impl HashableContent for EntryCreationAction
impl HashableContent for EntryCreationAction
Allows a [EntryCreationAction
] to hash the same bytes as
the equivalent [Action
] variant without needing to clone the action.