Skip to main content

Module ser

Module ser 

Source
Expand description

Serialize any T: Serialize directly into an in-memory RuntimeValue tree — the symmetric counterpart to crate::de::from_runtime_value.

Avoids intermediate serde_json::Value allocations and preserves RuntimeValue::Bytes natively (is_human_readable() == false, so byte buffers stay raw bytes rather than being hex-encoded into strings).

Structs§

ToValueError
Error from serializing a typed value into a RuntimeValue.

Functions§

to_runtime_value
Serialize value directly into a RuntimeValue, preserving raw byte strings and avoiding any JSON/CBOR buffer round-trip.