Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl(generator): Rust uses strings for enum values #88

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Nov 4, 2024

We decided to use strings for enum values, as the transport will be HTTP +
JSON. The generator creates some helper constants in a properly named module,
that prevents typos.

Fixes #76

We decided to use strings for enum values, as the transport will be HTTP +
JSON. The generator creates some helper constants in a properly named module,
that prevents typos.
@coryan coryan marked this pull request as ready for review November 4, 2024 20:34
@coryan coryan enabled auto-merge (squash) November 4, 2024 22:03
@coryan coryan merged commit c462bc5 into googleapis:main Nov 4, 2024
8 checks passed
@coryan coryan deleted the impl-generator-rust-uses-strings-for-enums branch November 4, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rust mapping uses strings to represent Protobuf enums
2 participants