<p>A TOML document is represented with the <ahref="type.Table.html"title="type toml::Table"><code>Table</code></a> type which maps <code>String</code> to the <ahref="enum.Value.html"title="enum toml::Value"><code>Value</code></a> enum:</p>
traits; the example above uses <ahref="https://doc.rust-lang.org/1.80.0/core/str/traits/trait.FromStr.html"title="trait core::str::traits::FromStr"><code>FromStr</code></a> to parse a <ahref="https://doc.rust-lang.org/1.80.0/std/primitive.str.html"title="primitive str"><code>str</code></a> into a
<li><code>Deserializer for de::Deserializer</code></li>
<li><code>Serializer for ser::Serializer</code></li>
<li><code>Deserializer for Table</code></li>
<li><code>Deserializer for Value</code></li>
</ul>
<p>This means that you can use Serde to deserialize/serialize the
<ahref="type.Table.html"title="type toml::Table"><code>Table</code></a> type as well as <ahref="enum.Value.html"title="enum toml::Value"><code>Value</code></a> and <ahref="value/struct.Datetime.html"title="struct toml::value::Datetime"><code>Datetime</code></a> type in this crate. You can also
use the <ahref="struct.Deserializer.html"title="struct toml::Deserializer"><code>Deserializer</code></a>, <ahref="struct.Serializer.html"title="struct toml::Serializer"><code>Serializer</code></a>, or <ahref="type.Table.html"title="type toml::Table"><code>Table</code></a> type itself to act as
a deserializer/serializer for arbitrary types.</p>
</div></details><h2id="modules"class="section-header">Modules<ahref="#modules"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="mod"href="de/index.html"title="mod toml::de">de</a></div><divclass="desc docblock-short">Deserializing TOML into Rust structures.</div></li><li><divclass="item-name"><aclass="mod"href="map/index.html"title="mod toml::map">map</a></div><divclass="desc docblock-short">A map of <code>String</code> to <ahref="enum.Value.html"title="enum toml::Value">Value</a>.</div></li><li><divclass="item-name"><aclass="mod"href="ser/index.html"title="mod toml::ser">ser</a></div><divclass="desc docblock-short">Serializing Rust structures into TOML.</div></li><li><divclass="item-name"><aclass="mod"href="value/index.html"title="mod toml::value">value</a></div><divclass="desc docblock-short">Definition of a TOML <ahref="enum.Value.html"title="enum toml::Value">value</a></div></li></ul><h2id="macros"class="section-header">Macros<ahref="#macros"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="macro"href="macro.toml.html"title="macro toml::toml">toml</a></div><divclass="desc docblock-short">Construct a <ahref="type.Table.html"title="type toml::Table"><code>Table</code></a> from TOML syntax.</div></li></ul><h2id="structs"class="section-header">Structs<ahref="#structs"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="struct"href="struct.Deserializer.html"title="struct toml::Deserializer">Deserializer</a></div><divclass="desc docblock-short">Deserialization TOML document</div></li><li><divclass="item-name"><aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a></div><divclass="desc docblock-short">Serialization for TOML documents.</div></li><li><divclass="item-name"><aclass="struct"href="struct.Spanned.html"title="struct toml::Spanned">Spanned</a></div><divclass="desc docblock-short">A spanned value, indicating the range at which it is defined in the source.</div></li></ul><h2id="enums"class="section-header">Enums<ahref="#enums"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="enum"href="enum.Value.html"title="enum toml::Value">Value</a></div><divclass="desc docblock-short">Representation of a TOML value.</div></li></ul><h2id="functions"class="section-header">Functions<ahref="#functions"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="fn"href="fn.from_str.html"title="fn toml::from_str">from_str</a></div><divclass="desc docblock-short">Deserializes a string into a type.</div></li><li><divclass="item-name"><aclass="fn"href="fn.to_string.html"title="fn toml::to_string">to_string</a></div><divclass="desc docblock-short">Serialize the given data structure as a String of TOML.</div></li><li><divclass="item-name"><aclass="fn"href="fn.to_string_pretty.html"title="fn toml::to_string_pretty">to_string_pretty</a></div><divclass="desc docblock-short">Serialize the given data structure as a “pretty” String of TOML.</div></li></ul><h2id="types"class="section-header">Type Aliases<ahref="#types"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="type"href="type.Table.html"title="type toml::Table">Table</a></div><divclass="desc docblock-short">Type representing a TOML table, payload of the <code>Value::Table</code> variant.</div></li></ul></section></div></main></body></html>