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

Extending struct to use struct fields #6

Closed
ajuvercr opened this issue Nov 7, 2022 · 0 comments · Fixed by #7
Closed

Extending struct to use struct fields #6

ajuvercr opened this issue Nov 7, 2022 · 0 comments · Fixed by #7

Comments

@ajuvercr
Copy link
Contributor

ajuvercr commented Nov 7, 2022

Hi,
I was wondering how difficult it would be to enable templates like #[get("https://api.github.com/repos/{self.path}")].
This can be useful to not store URL's as const like the GITHUB example.

My usecase would be a bit more advanced, where a struct stores AUTH JWT's and adds the JWT as a header, which is stored in self.

What are your thoughts?

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.

1 participant