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
#[derive(YaSerialize,YaDeserialize)]pubstructTest{v:String}#[test]fntest(){let v = Test{v:"".to_string()};
yaserde::de::from_str::<Test>(&dbg!(yaserde::ser::to_string(&v).unwrap())).unwrap();}
The following example fails:
The struct is correctly serialized to:
The error message is "v is a required field of Test". The problem occurs because the
visit_str
function is not called since there is no string.The text was updated successfully, but these errors were encountered: