Enum compatibility with serde
Opened this issue · 0 comments
alsam commented
Hello, the issue is quite similar to Compatibility with serde, but for enum
:
#[derive_ReprC]
#[repr(u8)]
#[derive(Serialize, Deserialize, Debug, Clone)]
#[allow(non_camel_case_types)]
pub enum Type {
reg,
mem,
// see issue [Compatibility with serde](https://github.com/getditto/safer_ffi/issues/35)
#[serde(rename = "clear-excl")]
clear_excl,
stop,
}
as you have fixed it for struct
could you please do the same for enum
?
Thanks!