yew_stdweb/format/toml.rs
1//! Contains an implementation of TOML serialization format.
2
3/// A representation of a TOML data. Use it as wrapper to
4/// set a format you want to use for conversion:
5///
6/// ```
7/// // Converts (lazy) data to a Toml
8///# use yew::format::Toml;
9///# fn dont_execute() {
10///# let data: String = unimplemented!();
11/// let dump = Toml(&data);
12///
13/// // Converts TOML string to a data (lazy).
14/// let Toml(data) = dump;
15/// }
16/// ```
17#[derive(Debug)]
18pub struct Toml<T>(pub T);
19
20text_format!(Toml based on toml);
21
22binary_format!(Toml based on toml);