Trait EntryDefRegistration

Source
pub trait EntryDefRegistration {
    const ENTRY_DEFS: &'static [EntryDef];
}
Expand description

Trait for binding static EntryDef property access for a type. This trait maps a type to its corresponding EntryDef property at compile time.

§Derivable

This trait can be used with #[derive] or by using the attribute macro hdk_derive::hdk_entry_defs.

Required Associated Constants§

Source

const ENTRY_DEFS: &'static [EntryDef]

The list of EntryDef properties for the implementing type. This must be in the same order as the

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§