pub struct OpenApiResultOutput<Inner, Error>(/* private fields */);Expand description
Describes both what an endpoint answers with and what its failures answer with.
A failure states its statuses on its type, which is the only place a document can read them: it folds a program rather than running one, so it never holds a failure to ask.
Trait Implementations§
Source§impl<Inner, Error, Value> OpenApiOutputAlg<Result<Value, Error>> for OpenApiResultOutput<Inner, Error>where
Inner: OpenApiOutputAlg<Value>,
Error: HttpErrorAlg,
impl<Inner, Error, Value> OpenApiOutputAlg<Result<Value, Error>> for OpenApiResultOutput<Inner, Error>where
Inner: OpenApiOutputAlg<Value>,
Error: HttpErrorAlg,
Source§fn answers(schema: &JsonSchemaShape) -> Vec<OpenApiAnswer>
fn answers(schema: &JsonSchemaShape) -> Vec<OpenApiAnswer>
Describes every answer this kind states, naming the shapes it mentions along the way.
Auto Trait Implementations§
impl<Inner, Error> Freeze for OpenApiResultOutput<Inner, Error>
impl<Inner, Error> RefUnwindSafe for OpenApiResultOutput<Inner, Error>
impl<Inner, Error> Send for OpenApiResultOutput<Inner, Error>
impl<Inner, Error> Sync for OpenApiResultOutput<Inner, Error>
impl<Inner, Error> Unpin for OpenApiResultOutput<Inner, Error>
impl<Inner, Error> UnsafeUnpin for OpenApiResultOutput<Inner, Error>
impl<Inner, Error> UnwindSafe for OpenApiResultOutput<Inner, Error>
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.
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.