This adds support for custom enum types like the below:
#[derive(BorshSerialize)]
pub enum Color {
Red(u8),
Green(u8),
Blue(u8),
White,
}
The approach mainly follows integration of custom struct types and consists of lots of mappings
starting from the ParsedEnum to CustomEnum to finally an IdlType.
Those are then concatentated with the IdlTypes derived from custom structs.
This adds support for custom enum types like the below:
The approach mainly follows integration of custom struct types and consists of lots of mappings starting from the
ParsedEnum
toCustomEnum
to finally anIdlType
. Those are then concatentated with theIdlType
s derived from custom structs.