Support C-Style enums with custom int values

This commit is contained in:
Ryan Levick
2018-02-23 14:17:53 +01:00
parent 71880b8a83
commit f783876192
4 changed files with 32 additions and 17 deletions

View File

@ -41,7 +41,8 @@ pub struct Enum {
#[derive(Deserialize)]
pub struct EnumVariant {
pub name: String
pub name: String,
pub value: u32
}
#[derive(Deserialize)]