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

Add pagination members to struct via Macro #82

Closed
tluijken opened this issue May 30, 2024 · 0 comments · Fixed by #104
Closed

Add pagination members to struct via Macro #82

tluijken opened this issue May 30, 2024 · 0 comments · Fixed by #104
Assignees

Comments

@tluijken
Copy link
Collaborator

For pagination, we always add the same 3 members to our structs. Since this is very repetitive, we could leverage a Macro here to omit boiler plated code.

However, it's not possible to leverage our current proc-macro for this. We should leverage an attribute-proc-macro.

See:
https://users.rust-lang.org/t/solved-derive-and-proc-macro-add-field-to-an-existing-struct/52307/4

Originally posted by @tluijken in #78 (comment)

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 a pull request may close this issue.

2 participants