Skip to main content

Module codec

Module codec 

Source
Expand description

Portable values use the same tagged JSON convention as the JavaScript SDK. Custom infrastructure codecs may replace this wire policy without changing the kernel.

Structs§

Integer
Portable decimal integer. Rust callers can apply checked conversion to their chosen width.
Json

Traits§

Codec

Functions§

bigint
Validate decimal integer text and wrap it in the portable tag.
bytes
Wrap bytes in the portable tagged representation.
decode
Decode JSON bytes or report malformed serialized data.
encode
Encode a portable JSON value or report serialization failure.