[go: up one dir, main page]

Module sonic_rs::serde

source ·

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, like as Golang json.Number
  • Reference to a range of bytes encompassing a single valid JSON value in the input data.
  • A structure for serializing Rust values into JSON.

Traits

  • A data structure that can be deserialized from any data format supported by Serde.
  • A data structure that can be serialized into any data format supported by Serde.

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.
  • Convert a T into a boxed RawValue.
  • 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.