ion-cli icon indicating copy to clipboard operation
ion-cli copied to clipboard

Add support for generating enums in Rust with code generation

Open desaikd opened this issue 2 years ago • 0 comments

Add support to generate struct based on Ion Schema. This will include supporting conversion of various struct related constraints in ISL.

Following ISL constraints will be supported with struct generation:

  • valid_values (Java style enums for string/symbol values)
  • one_of (Parameterized enum)

Action Items for this implementation:

  • [ ] Define templates for enums in Rust
  • [ ] Define constraint mapping for valid_values and one_of constraints in ISL to struct in Rust
  • [ ] Implement code generation for read and write API for enum in Rust

desaikd avatar Nov 17 '23 00:11 desaikd