aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/serialization.rs2
1 files changed, 2 insertions, 0 deletions
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<Value>,
cur_field: Option<String>,
}