Skip to main content

Module formats

Module formats 

Source
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.
StableEnum
Marker trait for enums whose variant tags on the wire are derived from Keccak-256(variant_name). Apply with #[derive(StableEnum)].
StableEnumTrace
Companion trait of StableEnum: exposes each variant’s stable tag and provides the implementation backing TracerExt::trace_stable_enum_type. Implemented by the #[derive(StableEnum)] macro.
TracerExt
Extension methods on Tracer for tracing enums whose variant tags are not contiguous starting at zero.

Functions§

bcs_to_json
Decode BCS-serialized bytes into a serde_json::Value, guided by format and the container registry.

Derive Macros§

StableEnum
Re-exports the #[derive(StableEnum)] macro for stable-tagged enums. Derive linera_sdk::formats::StableEnum for an enum. Expands to: