Crate sp_serializer

source ·
Expand description

Substrate customizable serde serializer.

The idea is that we can later change the implementation to something more compact, but for now we’re using JSON.

Structs

This type represents all possible errors that can occur when serializing or deserializing JSON data.

Functions

Serialize the given data structure as a JSON byte vector.
Deserialize an instance of type T from an IO stream of JSON.
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 pretty-printed String of JSON.
Serialize the given data structure as JSON into the IO stream.

Type Definitions

Alias for a Result with the error type serde_json::Error.