Expand description
Serialization helpers for raw and canonical JSON values.
The conversion functions bridge Serde values to Ruma’s raw and canonical
representations. A generic deserializer adapts string-backed fields to types
implementing FromStr.
Structs§
- Counter 🔒
- An
io::Writesink that counts bytes without buffering them.
Functions§
- deserialize_
from_ str - Deserializes a string and parses it through
FromStr. - serialized_
len - Measures the length of a value’s JSON serialization.
- to_
canonical_ object - Converts a serializable value into a canonical JSON object.
- to_raw
- Serializes a value into Ruma’s raw JSON representation.