[−][src]Module elefren::helpers::json
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.18"
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 |