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
{{ message }}
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
Deserialization using serde_yaml seems to be failing when it involves a nested struct like below. Is this a bug or am I missing something here?
Cargo.toml
[package]
name = "random"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde_yaml = "0.9.27"
serde = { version = "1.0.123", features = ["derive"] }
file-to-value
Mapping {"netconfig": TaggedValue { tag: !ethernet, value: String("192.168.2.10:1234") }}
value-to-struct
MyConfig { netconfig: Some(Ethernet(192.168.2.10:1234)) }
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("untagged and internally tagged enums do not support enum input")', src/main.rs:38:66
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
# for freeto subscribe to this conversation on GitHub.
Already have an account?
#.
Deserialization using serde_yaml seems to be failing when it involves a nested struct like below. Is this a bug or am I missing something here?
Cargo.toml
Rust code
Output with error
The text was updated successfully, but these errors were encountered: