Module hdk::prelude::zome

source ·
Expand description

A Zome is a module of app-defined code which can be run by Holochain. A group of Zomes are composed to form a DnaDef.

Real-world Holochain Zomes are written in Wasm. This module also provides for an “inline” zome definition, which is written using Rust closures, and is useful for quickly defining zomes on-the-fly for tests.

Structs

A single function name.
A zome defined by Wasm bytecode
A Holochain Zome. Includes the ZomeDef as well as the name of the Zome.
ZomeName as a String.

Enums

Just the definition of a Zome, without the name included. This exists mainly for use in HashMaps where ZomeDefs are keyed by ZomeName.

Type Definitions