pub struct TextHandlerImpl;Expand description
Interprets typed APIs as text descriptions.
Trait Implementations§
Source§impl Debug for TextHandlerImpl
impl Debug for TextHandlerImpl
Source§impl Default for TextHandlerImpl
impl Default for TextHandlerImpl
Source§fn default() -> TextHandlerImpl
fn default() -> TextHandlerImpl
Returns the “default value” for a type. Read more
Source§impl FileOutAlg for TextHandlerImpl
impl FileOutAlg for TextHandlerImpl
Source§type File<From> = TextFileOutput
type File<From> = TextFileOutput
The streamed-file converter selected for
From.Source§impl HandlerAlg for TextHandlerImpl
impl HandlerAlg for TextHandlerImpl
Source§type Endpoint = TextEndpoint
type Endpoint = TextEndpoint
The interpreter’s homogeneous endpoint representation.
Source§impl<Context> HandlerContextAlg<Context> for TextHandlerImpl
impl<Context> HandlerContextAlg<Context> for TextHandlerImpl
Source§impl<Context, Inputs, Args, Transform, Output> HandlerEndpointAlg<Context, Inputs, Args, Transform, Output> for TextHandlerImplwhere
Transform: OutputKindAlg<TextHandlerImpl, Output>,
impl<Context, Inputs, Args, Transform, Output> HandlerEndpointAlg<Context, Inputs, Args, Transform, Output> for TextHandlerImplwhere
Transform: OutputKindAlg<TextHandlerImpl, Output>,
Source§fn finish_handler<Handler>(&self, _handler: Handler) -> TextEndpoint
fn finish_handler<Handler>(&self, _handler: Handler) -> TextEndpoint
Interprets a typed first-order handler as a concrete endpoint. Read more
Source§impl HttpInputAlg for TextHandlerImpl
impl HttpInputAlg for TextHandlerImpl
Source§type Path<Input> = TextInputRole<PathRole, Input>
type Path<Input> = TextInputRole<PathRole, Input>
The interpreter’s path extractor for
Input.Source§type Query<Input> = TextInputRole<QueryRole, Input>
type Query<Input> = TextInputRole<QueryRole, Input>
The interpreter’s query extractor for
Input.Source§type Body<Input> = TextInputRole<BodyRole, Input>
type Body<Input> = TextInputRole<BodyRole, Input>
The interpreter’s request-body extractor for
Input.Source§type Header<Input> = TextInputRole<HeaderRole, Input>
type Header<Input> = TextInputRole<HeaderRole, Input>
The interpreter’s header extractor for
Input.Source§type Auth<Input> = TextInputRole<AuthRole, Input>
type Auth<Input> = TextInputRole<AuthRole, Input>
The interpreter’s authentication extractor for
Input.Source§type Context<Input> = TextInputRole<ContextRole, Input>
type Context<Input> = TextInputRole<ContextRole, Input>
The interpreter’s endpoint-context extractor for
Input.Source§impl HttpSelectorAlg for TextHandlerImpl
impl HttpSelectorAlg for TextHandlerImpl
Source§type Selector = TextSelector
type Selector = TextSelector
The interpreter’s HTTP selector representation.
Source§fn http_get(&self) -> TextSelector
fn http_get(&self) -> TextSelector
Interprets the GET method selector.
Source§fn http_post(&self) -> TextSelector
fn http_post(&self) -> TextSelector
Interprets the POST method selector.
Source§fn http_path(&self, path: &str) -> TextSelector
fn http_path(&self, path: &str) -> TextSelector
Interprets an exact path selector.
Source§fn http_prefix(&self, prefix: &str) -> TextSelector
fn http_prefix(&self, prefix: &str) -> TextSelector
Interprets a path-prefix selector.
Source§impl JsonOutAlg for TextHandlerImpl
impl JsonOutAlg for TextHandlerImpl
Source§type Json<From> = TextJsonOutput
type Json<From> = TextJsonOutput
The JSON converter selected for
From.Source§impl RouteAlg for TextHandlerImpl
impl RouteAlg for TextHandlerImpl
Source§type Selector = TextSelector
type Selector = TextSelector
The selector applied to a route or endpoint.
Source§type Endpoint = TextEndpoint
type Endpoint = TextEndpoint
The homogeneous endpoint representation lifted into routes.
Source§fn coproduct(&self, left: TextRoute, right: TextRoute) -> TextRoute
fn coproduct(&self, left: TextRoute, right: TextRoute) -> TextRoute
Forms the coproduct of two routes.
Source§fn precompose(&self, selector: TextSelector, route: TextRoute) -> TextRoute
fn precompose(&self, selector: TextSelector, route: TextRoute) -> TextRoute
Precomposes a route with a selector.
Source§fn lift(&self, endpoint: TextEndpoint) -> TextRoute
fn lift(&self, endpoint: TextEndpoint) -> TextRoute
Lifts an endpoint into a route.
Source§impl SelectorAlg for TextHandlerImpl
impl SelectorAlg for TextHandlerImpl
Source§type Selector = TextSelector
type Selector = TextSelector
The interpreter’s selector representation.
Source§fn identity(&self) -> TextSelector
fn identity(&self) -> TextSelector
Returns the selector identity.
Source§fn compose(&self, first: TextSelector, second: TextSelector) -> TextSelector
fn compose(&self, first: TextSelector, second: TextSelector) -> TextSelector
Composes two selectors from left to right.
Auto Trait Implementations§
impl Freeze for TextHandlerImpl
impl RefUnwindSafe for TextHandlerImpl
impl Send for TextHandlerImpl
impl Sync for TextHandlerImpl
impl Unpin for TextHandlerImpl
impl UnsafeUnpin for TextHandlerImpl
impl UnwindSafe for TextHandlerImpl
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.