Expand description
Support the declaration of the binary formats used by an application.
Structs§
- Formats
- The serde formats used by an application. The exact serde encoding in use must be known separately.
- Linera
Environment - A
json_converterenvironment that decodes the BCS form of well-known linera-base primitives into their human-readable JSON representation (e.g. aCryptoHashas a hex string, anAmountas a decimal string, anAccountOwneras its canonical address).
Enums§
- Prune
Error - An error raised while pruning known primitives from a
Formatsregistry.
Constants§
- KNOWN_
PRIMITIVE_ NAMES - The registry names of the linera-base primitives handled by
LineraEnvironment. These are exactly the types whose human-readable serde representation differs from their BCS form and whose BCS form is a named container (so it can be matched by name in a traced registry).
Traits§
- BcsApplication
- An application using BCS as binary encoding.
- Stable
Enum - Marker trait for enums whose variant tags on the wire are derived from
Keccak-256(variant_name). Apply with#[derive(StableEnum)]. - Stable
Enum Trace - Companion trait of
StableEnum: exposes each variant’s stable tag and provides the implementation backingTracerExt::trace_stable_enum_type. Implemented by the#[derive(StableEnum)]macro. - Tracer
Ext - Extension methods on
Tracerfor tracing enums whose variant tags are not contiguous starting at zero.
Derive Macros§
- Stable
Enum - Re-exports the
#[derive(StableEnum)]macro for stable-tagged enums. Derivelinera_sdk::formats::StableEnumfor anenum. Expands to: