Diesel enum derive
Please note that this crate is aimed to be simple and stick to a simple usage, no fancy configuration, only Pg
with Text fields.
For a more advanced usage, see: adwhit/diesel-derive-enum
Usage
Please note that this crate is aimed to be simple and stick to a simple usage, no fancy configuration, only Pg
with Text fields.
For a more advanced usage, see: adwhit/diesel-derive-enum
#[derive(DieselEnum)]
pub enum Role {
Admin,
User,
}