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

Generate an enum listing all generated operations, add FilterByOperation plugin #1839

Closed
2 tasks
hlbarber opened this issue Oct 11, 2022 · 0 comments · Fixed by #2772
Closed
2 tasks

Generate an enum listing all generated operations, add FilterByOperation plugin #1839

hlbarber opened this issue Oct 11, 2022 · 0 comments · Fixed by #2772
Labels
server Rust server SDK

Comments

@hlbarber
Copy link
Contributor

hlbarber commented Oct 11, 2022

As stated in #1837 (comment), a type safe alternative to matching against &'static str would be to generate an enum whose variants are a list of the operations and then match against that.

We should still attach this enum to the OperationShape as an associated type.

With this we can then develop a FilterByOperation plugin.

  • Write a design proposal
  • Implement the accepted solution
@hlbarber hlbarber changed the title Generate an enum listing all generated operations Generate an enum listing all generated operations, add FilterByOperation plugin Oct 11, 2022
@hlbarber hlbarber changed the title Generate an enum listing all generated operations, add FilterByOperation plugin Generate an enum listing all generated operations, add FilterByOperation plugin Oct 11, 2022
@hlbarber hlbarber added the server Rust server SDK label Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Rust server SDK
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant