#[derive(PgEnum)]
Expand description
Any enum that has no field on any variant can derive PgEnum
in order to be usable in a
#[ergol]
struct.
Note:
Any enum needs to derive Debug in order to derive PgEnum, since deriving Debug is required in order to implement ToSql.
#[ergol]
pub struct MyStruct {
#[id] pub id: i32,
pub ok: IsOk,
}
#[derive(PgEnum, Debug)]
pub enum IsOk {
IAmOk,
IAmNotOk,
}