diff --git a/src/serialization.rs b/src/serialization.rs index e5bce42..26fc7ba 100644 --- a/src/serialization.rs +++ b/src/serialization.rs @@ -48,6 +48,8 @@ pub struct Encoder { /// `Decodable` types to be generated by this decoder. The input is any /// arbitrary TOML value. pub struct Decoder { + /// The TOML value left over after decoding. This can be used to inspect + /// whether fields were decoded or not. pub toml: Option, cur_field: Option, }