mastodon_async/helpers/
mod.rs

1#[cfg(feature = "toml")]
2/// Helpers for serializing to/deserializing from toml
3///
4/// In order to use this module, set the "toml" feature in your Cargo.toml:
5///
6/// ```toml,ignore
7/// [dependencies.mastodon-async]
8/// version = "0.22"
9/// features = ["toml"]
10/// ```
11pub mod toml;
12
13#[cfg(feature = "json")]
14/// Helpers for serializing to/deserializing from json
15///
16/// In order to use this module, set the "json" feature in your Cargo.toml:
17///
18/// ```toml,ignore
19/// [dependencies.elefen]
20/// version = "0.22"
21/// features = ["json"]
22/// ```
23pub mod json;
24
25#[cfg(feature = "env")]
26/// Helpers for deserializing a `Data` struct from the environment
27///
28/// In order to use this module, set the "env" feature in your Cargo.toml:
29///
30/// ```toml,ignore
31/// [dependencies.mastodon-async]
32/// version = "0.22"
33/// features = ["env"]
34/// ```
35pub mod env;
36
37/// Helpers for working with the command line
38pub mod cli;
39/// Helpers for serializing data for logging
40pub mod log;
41/// Adapter for reading JSON data from a response with better logging and a
42/// fail-safe timeout.
43pub mod read_response;