feignhttp icon indicating copy to clipboard operation
feignhttp copied to clipboard

Extending struct to use struct fields

Open ajuvercr opened this issue 3 years ago • 0 comments

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?

ajuvercr avatar Nov 07 '22 11:11 ajuvercr