Electron100 / butane

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

Add #[derive(FieldType)] #68

Closed Electron100 closed 1 year ago

Electron100 commented 1 year ago

Add the ability to write #[derive(FieldType)] on a struct. The struct will be serialized as JSON. In the future, we may expand the capabilities here (for example, to allow deriving FieldType on an enum)

Based on #49 from @jayvdb. The majority of the credit for this feature is to him.