Trait poem_openapi::OpenApi
source · [−]pub trait OpenApi: Sized {
fn meta() -> Vec<MetaApi>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
;
fn register(registry: &mut Registry);
fn add_routes(self, route: Route) -> Route;
}
Expand description
Represents a OpenAPI object.
Required Methods
sourcefn meta() -> Vec<MetaApi>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn meta() -> Vec<MetaApi>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Gets metadata of this API object.
sourcefn add_routes(self, route: Route) -> Route
fn add_routes(self, route: Route) -> Route
Adds all API endpoints to the routing object.