borsh-rs
borsh-rs copied to clipboard
Don’t declare schema for empty enum variants
No information of the source type is lost by defining empty enum variants as unit type rather than creating a custom declaration for them. At the same time, not doing that simplifies the schemas and reduces chances for name collisions in derived schemas.