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.
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.
Functions§
- bcs_
to_ json - Decode BCS-serialized
bytesinto aserde_json::Value, guided byformatand the containerregistry.
Derive Macros§
- Stable
Enum - Re-exports the
#[derive(StableEnum)]macro for stable-tagged enums. Derivelinera_sdk::formats::StableEnumfor anenum. Expands to: