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

Ability to ignore some struct members, specifically for db serialisation #28

Open
jayvdb opened this issue Jan 20, 2023 · 1 comment
Open

Comments

@jayvdb
Copy link
Collaborator

jayvdb commented Jan 20, 2023

It looks like #[serde(skip)] will work to instruct butane to skip the field for db serialisation, however my structs get serialised to HTTP and to the DB, and I would like to serialise these fields to HTTP but not to the DB.

The two use-cases for this at the moment are:

  • some of the fields are not supported by butane, e.g. GIS and JSON
  • some of the fields are not allowed to be stored in the DB; they are managed differently to make regulatory compliance easier.
@jayvdb
Copy link
Collaborator Author

jayvdb commented Feb 2, 2023

c.f. diesel-rs/diesel#860 for same feature request there.

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