Skip to main content

OpenApiHeadersOutput

Struct OpenApiHeadersOutput 

Source
pub struct OpenApiHeadersOutput<Inner, Headers>(/* private fields */);
Expand description

Describes the headers a named product states beside the answer a kind already states.

Each member is one header every answer of the kind inside carries, named by the words its member name states, so the document keys it exactly as the answer writes it.

Trait Implementations§

Source§

impl<Inner, Headers, Rest> OpenApiOutputAlg<(Headers, Rest)> for OpenApiHeadersOutput<Inner, Headers>
where Inner: OpenApiOutputAlg<Rest>, Headers: ShapeOf<JsonSchemaShape, Shape = JsonSchema>,

Source§

fn answers(schema: &JsonSchemaShape) -> Vec<OpenApiAnswer>

Describes every answer this kind states, naming the shapes it mentions along the way.
Source§

impl<Inner, Headers, From> OutputAlg<From> for OpenApiHeadersOutput<Inner, Headers>

Source§

type Output = From

The transport value produced from the semantic handler result.
Source§

fn output(from: From) -> From

Converts a handler result into the declared API output.

Auto Trait Implementations§

§

impl<Inner, Headers> Freeze for OpenApiHeadersOutput<Inner, Headers>
where PhantomData<fn(Inner, Headers)>: Freeze,

§

impl<Inner, Headers> RefUnwindSafe for OpenApiHeadersOutput<Inner, Headers>
where PhantomData<fn(Inner, Headers)>: RefUnwindSafe,

§

impl<Inner, Headers> Send for OpenApiHeadersOutput<Inner, Headers>
where PhantomData<fn(Inner, Headers)>: Send,

§

impl<Inner, Headers> Sync for OpenApiHeadersOutput<Inner, Headers>
where PhantomData<fn(Inner, Headers)>: Sync,

§

impl<Inner, Headers> Unpin for OpenApiHeadersOutput<Inner, Headers>
where PhantomData<fn(Inner, Headers)>: Unpin,

§

impl<Inner, Headers> UnsafeUnpin for OpenApiHeadersOutput<Inner, Headers>
where PhantomData<fn(Inner, Headers)>: UnsafeUnpin,

§

impl<Inner, Headers> UnwindSafe for OpenApiHeadersOutput<Inner, Headers>
where PhantomData<fn(Inner, Headers)>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<This> HttpOperationExt<This> for This

Source§

fn op<Handler>(&self, handler: Handler) -> Operation<Handler>

Starts an operation declaration without choosing extraction or conversion.

Source§

impl<This> HttpProgramExt<This> for This

Source§

fn program<Program>(&self, program: Program) -> Routes<'_, This>
where This: RouteAlg, Program: HttpProgramAlg<This, Route = <This as RouteAlg>::Route>,

Interprets a named program for further route composition.

Source§

fn compile_http<Program>( &self, program: Program, ) -> <Program as HttpProgramAlg<This>>::Route
where Program: HttpProgramAlg<This>,

Compiles a named HTTP program with this interpreter.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<This> ShapeProgramExt<This> for This

Source§

fn compile_shape<Program>( &self, program: Program, ) -> <Program as ShapeProgramAlg<This>>::Ty
where Program: ShapeProgramAlg<This>,

Folds a declaration with this interpretation.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.