sonic_rs

Module serde

Source
Expand description

Serde between JSON text and Rust data structure.

Structs§

  • A structure that deserializes JSON into Rust values.
  • Represents a JSON number, whether integer or floating point.
  • Represents a JSON number with arbitrary precision, the underlying representation of a string, like as Golang json.Number.
  • A structure for serializing Rust values into JSON.
  • An iterator that deserializes a json stream into multiple T values.

Traits§

Functions§

  • Deserialize an instance of type T from bytes of JSON text. If user can guarantee the JSON is valid UTF-8, recommend to use from_slice_unchecked instead.
  • Deserialize an instance of type T from bytes of JSON text.
  • Deserialize an instance of type T from a string of JSON text.
  • Serialize the given data structure as a String of JSON.
  • Serialize the given data structure as a pretty-printed String of JSON.
  • Serialize the given data structure as a JSON byte vector.
  • Serialize the given data structure as a pretty-printed JSON byte vector.
  • Serialize the given data structure as JSON into the I/O stream.
  • Serialize the given data structure as pretty-printed JSON into the I/O stream.