You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Traits should not be used to define the method of the request. In the current version of rust, if you define async functions in traits, you must use async-trait crate, but async-trait is conflict with feignhttp.
I stumbled onto an unsupported pattern that would be nice to support. I have a trait that can be implemented with
get
attributes, which works fine:But when I add a URL prefix with the
feign
attribute, it expands to a normalimpl
without the trait:A workaround is to supply the URL for every request, i.e.
#[get(url = "https://some.url", path = "/some/path/{id}")]
The text was updated successfully, but these errors were encountered: