Module encoding
Expand description
Journal encoding trait and implementations (JOURNAL_SPEC §6).
Two wire formats are supported:
- NDJSON — human-readable, useful for debugging and dev.
- CBOR — compact binary, recommended for production.
Structs§
- Cbor
Encoding - CBOR encoding via
ciborium. - NdJson
Encoding - Newline-delimited JSON encoding (one JSON object per record, no trailing newline in the encoded payload — the framing layer handles record boundaries).
Enums§
- Encoding
- Encoding format selector.
Traits§
- Journal
Encoding - Encode / decode an
EngineEventto / from bytes.
Functions§
- encoding_
for - Return a boxed encoding implementation for the given format.