Skip to content

Conversation

AdinAck
Copy link

@AdinAck AdinAck commented Jul 18, 2025

Currently, generated getters for optional enums emit the default enum variant if the field is not present in the message. This PR renames this behavior to "_or_default" and changes the getter behavior to return an Option.

Note: This is a breaking change, I can refactor this to be non-breaking, but it would not be idiomatic Rust.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants