Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
91 stars 13 forks source link

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

Open jayvdb opened 1 year ago

jayvdb commented 1 year ago

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:

jayvdb commented 1 year ago

c.f. https://github.com/diesel-rs/diesel/issues/860 for same feature request there.