pub struct OpenApiRouteImpl;Expand description
Composes route selection as the path and method a document keys an operation by.
Trait Implementations§
Source§impl Debug for OpenApiRouteImpl
impl Debug for OpenApiRouteImpl
Source§impl Default for OpenApiRouteImpl
impl Default for OpenApiRouteImpl
Source§fn default() -> OpenApiRouteImpl
fn default() -> OpenApiRouteImpl
Returns the “default value” for a type. Read more
Source§impl HttpSelectorAlg for OpenApiRouteImpl
impl HttpSelectorAlg for OpenApiRouteImpl
Source§type Selector = OpenApiSelector
type Selector = OpenApiSelector
The interpreter’s HTTP selector representation.
Source§fn http_method(&self, method: HttpMethod) -> OpenApiSelector
fn http_method(&self, method: HttpMethod) -> OpenApiSelector
Interprets a request-method selector.
Source§fn http_path(&self, path: &RoutePath) -> OpenApiSelector
fn http_path(&self, path: &RoutePath) -> OpenApiSelector
Interprets an exact path selector.
Source§fn http_prefix(&self, prefix: &RoutePath) -> OpenApiSelector
fn http_prefix(&self, prefix: &RoutePath) -> OpenApiSelector
Interprets a path-prefix selector.
Source§impl RouteAlg for OpenApiRouteImpl
impl RouteAlg for OpenApiRouteImpl
Source§type Route = OpenApiRoute
type Route = OpenApiRoute
The interpreter’s composed route representation.
Source§type Selector = OpenApiSelector
type Selector = OpenApiSelector
The selector applied to a route or endpoint.
Source§type Endpoint = OpenApiEndpoint
type Endpoint = OpenApiEndpoint
The homogeneous endpoint representation lifted into routes.
Source§fn initial(&self) -> OpenApiRoute
fn initial(&self) -> OpenApiRoute
Returns the initial route.
Source§fn coproduct(&self, left: OpenApiRoute, right: OpenApiRoute) -> OpenApiRoute
fn coproduct(&self, left: OpenApiRoute, right: OpenApiRoute) -> OpenApiRoute
Forms the coproduct of two routes.
Source§fn precompose(
&self,
selector: OpenApiSelector,
route: OpenApiRoute,
) -> OpenApiRoute
fn precompose( &self, selector: OpenApiSelector, route: OpenApiRoute, ) -> OpenApiRoute
Precomposes a route with a selector.
Source§fn lift(&self, endpoint: OpenApiEndpoint) -> OpenApiRoute
fn lift(&self, endpoint: OpenApiEndpoint) -> OpenApiRoute
Lifts an endpoint into a route.
Source§impl SelectorAlg for OpenApiRouteImpl
impl SelectorAlg for OpenApiRouteImpl
Source§type Selector = OpenApiSelector
type Selector = OpenApiSelector
The interpreter’s selector representation.
Source§fn identity(&self) -> OpenApiSelector
fn identity(&self) -> OpenApiSelector
Returns the selector identity.
Source§fn compose(
&self,
first: OpenApiSelector,
second: OpenApiSelector,
) -> OpenApiSelector
fn compose( &self, first: OpenApiSelector, second: OpenApiSelector, ) -> OpenApiSelector
Composes two selectors from left to right.
Auto Trait Implementations§
impl Freeze for OpenApiRouteImpl
impl RefUnwindSafe for OpenApiRouteImpl
impl Send for OpenApiRouteImpl
impl Sync for OpenApiRouteImpl
impl Unpin for OpenApiRouteImpl
impl UnsafeUnpin for OpenApiRouteImpl
impl UnwindSafe for OpenApiRouteImpl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.
impl<_INNER> HttpRouteAlg for _INNERwhere
_INNER: HttpSelectorAlg<Selector = <_INNER as SelectorAlg>::Selector> + RouteAlg<Selector = <_INNER as SelectorAlg>::Selector> + SelectorAlg,
Source§impl<This> RouteAlgExt<This> for Thiswhere
This: RouteAlg,
impl<This> RouteAlgExt<This> for Thiswhere
This: RouteAlg,
Source§impl<This> ShapeProgramExt<This> for This
impl<This> ShapeProgramExt<This> for This
Source§fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
Folds a declaration with this interpretation.