Struct toml::Decoder [] [src]

pub struct Decoder {
    pub toml: Option<Value>,
    // some fields omitted
}

A structure to transform TOML values into Rust values.

This decoder implements the serialization Decoder interface, allowing Decodable types to be generated by this decoder. The input is any arbitrary TOML value.

Fields

The TOML value left over after decoding. This can be used to inspect whether fields were decoded or not.

Methods

impl Decoder
[src]

Creates a new decoder, consuming the TOML value to decode.

This decoder can be passed to the Decodable methods or driven manually.

Trait Implementations

impl Decoder for Decoder
[src]