Function hdi_extensions::summon_app_entry

source ·
pub fn summon_app_entry<T, E>(addr: &AnyLinkableHash) -> ExternResult<T>
where T: TryFrom<Record, Error = E> + TryFrom<Entry, Error = E>, E: Debug, WasmError: From<E>,
Expand description

Get and deserialize the given address into the expected app entry struct

NOTE: This will only verify the deserialization of an app entry, it does not validate the app entry def

§Example: Basic Usage


fn test(any_linkable_hash: AnyLinkableHash) -> ExternResult<()> {
    let post : PostEntry = summon_app_entry( &any_linkable_hash )?;
    Ok(())
}