Skip to main content

Crate diesel_enum_number

Crate diesel_enum_number 

Source

Attribute Macrosยง

diesel_enum_number
Attribute macro that implements from_i16, ToSql<SmallInt, Pg>, and FromSql<SmallInt, Pg> for an enum, and automatically applies #[repr(i16)].