Closed oscartbeaumont closed 2 years ago
I worked around needing a macro by doing Endpoint<impl HttpEndpoint>
as the return type. This way we can implement all of the functions on Endpoint
which is a struct hence not requiring the HttpEndpoint
trait to be in scope.
This is so the user of your crate doesn't need the
HttpEndpoint
trait in scope to call methods on it.