Skip to main content

Module blocks

Module blocks 

Source
Expand description

The 10 typed block payloads that make up an crate::Emoji.

Each block type is a plain serde struct (one module per type). On disk / on the wire a block is identified by its BlockTag — a 3-byte ASCII tag in the binary directory, and a tag char + plane-15 sub-range in the Unicode encoding — so payloads stay self-describing without embedding type names in the JSON.

Structs§

ApiBlock
API endpoints block.
ApiEndpoint
A single HTTP endpoint description.
CharacterBlock
Character block: weighted traits plus a free-text backstory.
EmotionBlock
Emotion block.
EmotionState
A single emotion state.
EncryptionBlock
Encryption directive block.
FunctionBlock
Function definitions block.
FunctionDef
A single function definition.
ImageBlock
An image block: an optional label plus the atlas itself.
LifecycleBlock
Lifecycle block: states + event-driven transitions.
LifecycleState
A lifecycle state.
LifecycleTransition
An event-driven transition between states.
OrchestrationBlock
Orchestration block: an ordered list of key/value directives.
OrchestrationDirective
A single directive.
SpriteAtlas
A sprite atlas: width×height RGBA8 pixels holding frame_count frames of frame_width×frame_height, laid out row-major.
TextBlock
Free-text block. Every emoji built with crate::EmojiBuilder carries one: the emoji’s name round-trips through this block (the binary container has no name field of its own).
TodoBlock
Task list block.
TodoItem
A single task.

Enums§

Block
A typed block payload.
BlockTag
Identifies a block type. The index (0..10) doubles as the plane-15 sub-range selector in the Unicode encoding, so the order is part of the wire format and must never change.
DirectiveKind
The kind of orchestration directive.
EncryptionAlgorithm
Supported AEAD algorithms (RustCrypto implementations, matching the WebCrypto algorithms used by @combs/zerotrust).
FunctionKind
The kind of function.
TodoStatus
Task status.