Module ser

Module ser 

Source
Expand description

Serde serialization support for BarkML AST nodes.

This module provides comprehensive serde serialization support for converting Rust data structures into BarkML Statement and Value types. This enables programmatic generation of BarkML AST nodes from Rust structs and other data types.

The module consists of:

  • error: Custom error types for serialization failures
  • statement: Serializer implementation that produces Statement types
  • value: Serializer implementation that produces Value types

Structs§

KeySerializer
Key serializer that only accepts string keys.
SerializeStatementMap
Serializer for statement maps and structs.
SerializeStatementSeq
Serializer for statement sequences.
SerializeStatementStructVariant
Serializer for statement struct variants.
SerializeStatementTupleVariant
Serializer for statement tuple variants.
SerializeVec
Serializer for sequences (arrays, tuples).
StatementSerializer
Serializer for BarkML statements.
ValueSerializeMap
Serializer for maps and structs.
ValueSerializeStructVariant
Serializer for struct variants.
ValueSerializeTupleVariant
Serializer for tuple variants.
ValueSerializer
Serializer for BarkML values.

Functions§

to_statement
Serialize a type T to a BarkML Statement.
to_value
Serialize a type T to a BarkML Value.