pub trait AddRoute<S> {
// Required method
fn add(self, r: (&str, MethodRouter<S, Infallible>)) -> Self;
}
Expand description
Add add
method to Router
to add routes also to the openapi spec.
Required Methods§
fn add(self, r: (&str, MethodRouter<S, Infallible>)) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.