[−][src]Trait holochain_entry_utils::HolochainEntry
Common utility crate that implements default behaviours to make it easy to deal with structs that are stored in holochain entries
Required methods
fn entry_type() -> String
Returns the entry_type for this Entry This entry_type is what is used to identify the Entry in the entry definition
Provided methods
fn entry(self) -> Entry
Wraps the struct into the holochain Entry
fn address(&self) -> ZomeApiResult<Address>
Calculates which address would the Entry have if it was committed
fn from_entry(entry: &Entry) -> Option<Self>
Tries to convert an Entry to the deserialized struct Returns None if the Entry is not of type struct