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§
- Error
- This type represents all possible errors that can occur when serializing or deserializing JSON data.
Functions§
- encode
- Serialize the given data structure as a JSON byte vector.
- from_
reader - Deserialize an instance of type
T
from an I/O stream of JSON. - from_
slice - Deserialize an instance of type
T
from bytes of JSON text. - from_
str - Deserialize an instance of type
T
from a string of JSON text. - to_
string_ pretty - Serialize the given data structure as a pretty-printed String of JSON.
- to_
writer - Serialize the given data structure as JSON into the IO stream.
Type Aliases§
- Result
- Alias for a
Result
with the error typeserde_json::Error
.