Macro hdk::entry_defs [−][src]
macro_rules! entry_defs { [ $( $def:expr ),* ] => { ... }; }
Expand description
Shorthand to implement the entry defs callback similar to the vec![ .. ] macro but for entries.
e.g. the following are the same
ⓘ
entry_defs![ Foo::entry_def() ];
ⓘ
#[hdk_extern] fn entry_defs(_: ()) -> ExternResult<EntryDefsCallbackResult> { Ok(vec![ Foo::entry_def() ].into()) }