This repository has been archived by the owner on May 11, 2023. It is now read-only.
Value/OwnedValue macro doesn't support renaming fields #330
Labels
4. newcomers
Tasks that are good for new contributors
bug
Something isn't working
zvariant_derive
Issues/PRs related to zvariant_derive crate
In GitLab by @wynprice999 on Mar 1, 2023, 22:01
It seems like the field names used for deserialization can't be renamed. I would expect using
#[zvariant(rename = "...")]
would rename the field, but it doesn't appear to have an effect:Example expansion
Expands to the following:
From what I can tell, a solution would involve the following line: https://gitlab.freedesktop.org/dbus/zbus/-/blob/main/zvariant_derive/src/value.rs#L111
The text was updated successfully, but these errors were encountered: