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
That is problem with serde flatten feature, that is not well-designed. Unfortunately, we cannot do anything at quick-xml side. The fix of serde-rs/serde#1183 is required.
@Mingun, Do you have a suggested workaround for factoring out multiple redundant keys? Maybe a macro that defines my structs and inherits all redundant keys?
I am trying to factor out some commonly used keys in an xml api I am using, using
#[serde(flatten)]
. When using#[serde(flatten)]
I am gettingI would like to avoid manually flattening struct definitions if possible. Hopefully I am just misunderstanding.
Minimum reproducible example:
The text was updated successfully, but these errors were encountered: