pub trait EntryTypesHelper: Sized {
    type Error;

    fn deserialize_from_type<Z, I>(
        zome_id: Z,
        entry_def_index: I,
        entry: &Entry
    ) -> Result<Option<Self>, Self::Error>
    where
        Z: Into<ZomeId>,
        I: Into<EntryDefIndex>
; }
Expand description

Helper trait for deserializing Entrys to the correct type.

This is implemented by the hdk_entry_defs proc_macro.

Required Associated Types

The error associated with this conversion.

Required Methods

Check if the ZomeId and EntryDefIndex matches one of the ZomeEntryTypesKey::from(Self::variant) and if it does deserialize the Entry into that type.

Implementations on Foreign Types

Implementors