Expand description
Neutral JSON/encoding helpers shared by checkpoint and passive storage (D96).
This module owns the strict/canonical JSON byte contract used by storage, checkpoints, and future V1 hash inputs. It is deliberately independent of graph lifecycle and storage tier types.
Structs§
- Json
Codec JsonCodecdata container.- Strict
Json Codec StrictJsonCodecdata container.
Enums§
- Json
Codec Error JsonCodecErrorvariants.
Traits§
- Codec
- Typed byte codec for D82 storage binding helpers and D96 JSON surfaces.
Functions§
- assert_
decimal_ integer_ string - Creates or computes
assert_decimal_integer_string. - assert_
non_ negative_ decimal_ integer_ string - Creates or computes
assert_non_negative_decimal_integer_string. - decimal_
string_ to_ i128 - Creates or computes
decimal_string_to_i128. - i128_
to_ decimal_ string - Creates or computes
i128_to_decimal_string. - is_
decimal_ integer_ string - Creates or computes
is_decimal_integer_string. - is_
non_ negative_ decimal_ integer_ string - Creates or computes
is_non_negative_decimal_integer_string. - json_
codec_ for - Creates or computes
json_codec_for. - non_
negative_ decimal_ string_ to_ u128 - Creates or computes
non_negative_decimal_string_to_u128. - stable_
json_ string - Stable JSON string with object keys sorted by JavaScript UTF-16 code-unit order.
- strict_
canonical_ json_ bytes - D113 neutral helper for strict canonical JSON UTF-8 bytes.
- strict_
json_ codec_ for - Creates or computes
strict_json_codec_for. - strict_
json_ decode - Decode strict canonical JSON bytes, rejecting malformed UTF-8, duplicate keys, non-canonical byte shape, and values that fail the shared strict validator.
- u128_
to_ non_ negative_ decimal_ string - Creates or computes
u128_to_non_negative_decimal_string. - validate_
strict_ json_ value - Shared strict JSON value validator for checkpoint and storage canonical bytes.
Type Aliases§
- Decimal
Integer String DecimalIntegerStringtype alias.- Json
Codec Result JsonCodecResulttype alias.- Json
Value JsonValuetype alias.- NonNegative
Decimal Integer String NonNegativeDecimalIntegerStringtype alias.