pub enum EntityKind {
Account,
Commodity,
Transaction,
Split,
Tag,
Price,
SshKey,
ReportNode,
Condition,
}Expand description
Kind tag for one server-entity wasm struct. Each variant maps to a
concrete $<kind> GC struct registered in
CompileContext::new_skeleton, plus a set of typed field accessors
in the native registry. Adding an entity adds one variant here +
one row in the nomi_entity! macro invocation; the compiler and
host-side allocators pick up the rest by expansion.
Variants§
Account
Commodity
Transaction
Split
Tag
Price
SshKey
ReportNode
Hierarchical report node — recursive entity carrying the
per-account/per-period balance rows that the report family
of natives produces. $report_node.children is a
pair<report_node> chain, so (dolist (n (node-children r)) ...) walks the tree without leaving the typed lattice.
Condition
Error condition raised by (error 'code "msg") and caught by
(handler-case). Maps to the $nomi_condition struct registered
for exception support; the clause variable e binds at this kind so
(error-code e) / (error-message e) type-check.
Implementations§
Trait Implementations§
Source§impl Clone for EntityKind
impl Clone for EntityKind
Source§fn clone(&self) -> EntityKind
fn clone(&self) -> EntityKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more