Configuration parsing issues

To expand what Alice means, you can do this as I suggest here:

fn check<T>(v: T)
where
    T: Serialize + DeserializeOwned + PartialEq + Debug,
{
    let s = serde_yaml::to_string(&v).unwrap();
    println!("{v:?} =>\n{s}");
    let parsed: T = serde_yaml::from_str(&s).unwrap();
    assert_eq!(v, parsed);
}

Rust Playground