aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-26 22:55:20 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-26 22:55:20 -0700
commit0f9410a7f0d3473aef2b82f218f8b4e0a44386da (patch)
treef747e459950ad0cbda21cfec9b9985a62e1faffb /src
parentc28df7cb52f537975866b43ca28ea5d1a38f7d17 (diff)
downloadmilf-rs-0f9410a7f0d3473aef2b82f218f8b4e0a44386da.tar.gz
milf-rs-0f9410a7f0d3473aef2b82f218f8b4e0a44386da.zip
Document a new public field
Diffstat (limited to 'src')
-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>,
}