mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-28 04:01:33 +00:00
Support C-Style enums with custom int values
This commit is contained in:
@ -41,7 +41,8 @@ pub struct Enum {
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct EnumVariant {
|
||||
pub name: String
|
||||
pub name: String,
|
||||
pub value: u32
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
Reference in New Issue
Block a user