cornucopia-rs / cornucopia

Generate type-checked Rust from your PostgreSQL.
Other
755 stars 31 forks source link

feature request: derive Eq and Hash for generated structs #240

Open robert-sjoblom opened 2 months ago

robert-sjoblom commented 2 months ago

It would help to avoid the tedium of implementing them yourself. Is there a reason why they don't?

DenisGorbachev commented 2 months ago

Related: #149

DenisGorbachev commented 2 months ago

@LouisGariepy Is it possible please to add the CodegenSettings.extra_derives: Vec<String> field & render it into the #[derive(...)] on the generated structs?