Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serde support for Attributes #869

Open
ur-fault opened this issue Mar 19, 2024 · 0 comments
Open

serde support for Attributes #869

ur-fault opened this issue Mar 19, 2024 · 0 comments

Comments

@ur-fault
Copy link

Is your feature request related to a problem? Please describe.
I'm trying to save and load the ContentStyle from some kind of file or similar. It's pretty weird to serialize it as bit integer in JSON.

Describe the solution you'd like
It would be much easier if Attributes implemented serde::Serialize and serde::Deserialize. Some kind of comma separated string of attributes enabled.

Describe alternatives you've considered if any
Serializing it using int.

Additional context
Right now I'm using it with Extism, but may use it for save/settings system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant