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
toml | The TOML value left over after decoding. This can be used to inspect whether fields were decoded or not. |
Methods
impl Decoder
fn new(toml: Value) -> Decoder
Creates a new decoder, consuming the TOML value to decode.
This decoder can be passed to the Decodable
methods or driven
manually.