Skip to content

feat: add associated methods to structs for static values #56

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

Merged
merged 2 commits into from
Mar 22, 2025

Conversation

hashemix
Copy link
Member

📌 Summary

Enhanced the schema by incorporating associated methods into the structs for static values.

For instance, we can now retrieve the method name of messages using an associated method, such as:

let method_name = CancelledNotification::method_name(); // Returns "notifications/cancelled"

Previously, this information was only accessible through instance methods.
This improvement should greatly simplify development across various use cases.

@hashemix hashemix self-assigned this Mar 22, 2025
@hashemix hashemix merged commit f5a97a3 into main Mar 22, 2025
2 checks passed
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.

1 participant