Skip to main content

Module rust_codec

Module rust_codec 

Source
Expand description

Rust value and type-shape codec for LinkNetwork.

The codec uses explicit ToLinks / FromLinks traits plus the LinksObject helper trait for user structs. This is intentionally smaller than a proc-macro crate and avoids adding a serde serializer contract before the links representation has stabilized. User types opt in with ordinary trait impls, while primitives, Option, Vec, BTreeMap, and Rc<RefCell<T>> get reusable implementations.

Structs§

LinksDecoder
Stateful Rust value decoder.
LinksEncoder
Stateful Rust value encoder.
RustFieldShape
One named field, variant, or trait item in a Rust type shape.
RustTypeShape
Queryable Rust type declaration shape.

Enums§

LinksCodecError
Error returned while decoding Rust values from links.
RustTypeKind
High-level Rust type declaration kind represented as links.

Traits§

FromLinks
Decodes a Rust value from links.
LinksObject
Helper trait for user-defined object types that need identity preservation.
ToLinks
Encodes a Rust value into links.