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 failuresstatement: Serializer implementation that producesStatementtypesvalue: Serializer implementation that producesValuetypes
Structs§
- KeySerializer
- Key serializer that only accepts string keys.
- Serialize
Statement Map - Serializer for statement maps and structs.
- Serialize
Statement Seq - Serializer for statement sequences.
- Serialize
Statement Struct Variant - Serializer for statement struct variants.
- Serialize
Statement Tuple Variant - Serializer for statement tuple variants.
- Serialize
Vec - Serializer for sequences (arrays, tuples).
- Statement
Serializer - Serializer for BarkML statements.
- Value
Serialize Map - Serializer for maps and structs.
- Value
Serialize Struct Variant - Serializer for struct variants.
- Value
Serialize Tuple Variant - Serializer for tuple variants.
- Value
Serializer - Serializer for BarkML values.
Functions§
- to_
statement - Serialize a type
Tto a BarkMLStatement. - to_
value - Serialize a type
Tto a BarkMLValue.