Make enum field setters easier to use #635
Labels
good first issue
This issue is a good place to started contributing to this repository.
priority: p3
Desirable enhancement or fix. May not be included in next release.
sidekick
Issues related to the code generator
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
The setters for enum fields are too hard to use. Consider:
google-cloud-rust/src/generated/cloud/workflows/v1/src/model.rs
Lines 202 to 206 in 5cd390d
That consumes the enum field. We would need to initialize these with:
Ugh.... maybe we can implement
From<&str>
for the enums, so we can write:The text was updated successfully, but these errors were encountered: