Expand description
Helpers for serializing to/deserializing from json
In order to use this module, set the “json” feature in your Cargo.toml:
[dependencies.elefen]
version = "0.22"
features = ["json"]
Functions§
- from_
file - Attempts to deserialize a Data struct from a file
- from_
reader - Attempts to deserialize a Data struct from something that implements the std::io::Read trait
- from_
slice - Attempts to deserialize a Data struct from a slice of bytes
- from_
str - Attempts to deserialize a Data struct from a string
- to_file
- Attempts to serialize a Data struct to a file
- to_
file_ with_ options - Attempts to serialize a Data struct to a file
- to_
string - Attempts to serialize a Data struct to a String
- to_vec
- Attempts to serialize a Data struct to a Vec of bytes
- to_
writer - Attempts to serialize a Data struct to something that implements the std::io::Write trait