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§
- ToValue
Error - Error from serializing a typed value into a
RuntimeValue.
Functions§
- to_
runtime_ value - Serialize
valuedirectly into aRuntimeValue, preserving raw byte strings and avoiding any JSON/CBOR buffer round-trip.