Closed viniciusth closed 1 year ago
As discussed on #1023, this PR implements an override/attribute that allows mismatching Rust and Postgres enums.
#[derive(ToSql, FromSql)] #[postgres(allow_mismatch)] enum Mood { Sad, Happy, Meh, }
Hey @sfackler could you please review this PR?
As discussed on #1023, this PR implements an override/attribute that allows mismatching Rust and Postgres enums.
Example