vdf-rs
vdf-rs copied to clipboard
#[serde(flatten)] crashes when trying to serialize
#[serde(rename = "AppState")]
struct AppManifestFile {
#[serde(rename = "appid")]
pub app_id: String,
pub name: String,
#[serde(rename = "AutoUpdateBehavior")]
pub auto_update_bahavior: String,
#[serde(flatten)]
other: HashMap<String, Value>,
}
deserializing works.
but when converting this object back to a string, it panics with this message: Expected key, found: Some(ObjBegin)