You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a config system for a CLI application based in TOML. The top layer is always a Table, but in order to use the Deserializer implementation in Value, I currently have to store a Value instead (meaning I then have to do something like as_table().unwrap() in all the other methods).
The text was updated successfully, but these errors were encountered:
Note, I was looking for Deserializer, not Deserialize. I found out however that they are mostly just aliases to std types, so I've made newtype wrappers instead so that I can implement traits on the types. That way I've been able to impl<'de> Deserializer<'de> for &'de MyNewType.
With toml-rs#457, we've started to make a harder distinction between documents and
values in `de`. We are looking to do similar for `ser` which requires us to do
this for `Table`/`Value` as well.
Fixestoml-rs#367
I'm writing a config system for a CLI application based in TOML. The top layer is always a Table, but in order to use the
Deserializer
implementation inValue
, I currently have to store a Value instead (meaning I then have to do something likeas_table().unwrap()
in all the other methods).The text was updated successfully, but these errors were encountered: