pub trait IntoApiMethodRouter<S = ()> {
// Required methods
fn into_get_route(self) -> ApiMethodRouter<S>;
fn into_post_route(self) -> ApiMethodRouter<S>;
fn into_patch_route(self) -> ApiMethodRouter<S>;
fn into_delete_route(self) -> ApiMethodRouter<S>;
fn into_put_route(self) -> ApiMethodRouter<S>;
}Expand description
Trait for handlers that carry their own documentation.
This trait is automatically implemented by the #[rovo] macro for decorated handlers.
It provides methods to convert the handler into documented route handlers for each HTTP method.
You typically won’t implement this trait manually - instead, use the #[rovo] macro
on your handler functions.
Required Methods§
Sourcefn into_get_route(self) -> ApiMethodRouter<S>
fn into_get_route(self) -> ApiMethodRouter<S>
Convert into a GET route with documentation
Sourcefn into_post_route(self) -> ApiMethodRouter<S>
fn into_post_route(self) -> ApiMethodRouter<S>
Convert into a POST route with documentation
Sourcefn into_patch_route(self) -> ApiMethodRouter<S>
fn into_patch_route(self) -> ApiMethodRouter<S>
Convert into a PATCH route with documentation
Sourcefn into_delete_route(self) -> ApiMethodRouter<S>
fn into_delete_route(self) -> ApiMethodRouter<S>
Convert into a DELETE route with documentation
Sourcefn into_put_route(self) -> ApiMethodRouter<S>
fn into_put_route(self) -> ApiMethodRouter<S>
Convert into a PUT route with documentation