pub trait Serves<A: ApiSpec> {
// Required method
fn register(self, router: &mut Router);
}Expand description
A tuple of bound handlers that fully covers an API specification.
If your API has 3 endpoints and you provide only 2 handlers, the compiler
will reject it because Serves<API> won’t be satisfied.