pub struct OpenApiFileOutput;Expand description
Describes streamed-file answers in a document.
Trait Implementations§
Source§impl<File, Error> OpenApiOutputAlg<(Result<File, Error>, String)> for OpenApiFileOutputwhere
Error: HttpErrorAlg,
Describes a download: the bytes it answers with, and what reading the file can fail as.
impl<File, Error> OpenApiOutputAlg<(Result<File, Error>, String)> for OpenApiFileOutputwhere
Error: HttpErrorAlg,
Describes a download: the bytes it answers with, and what reading the file can fail as.
A file handler answers with the file it read and the name to offer it under, so the failure is
stated by the file rather than by a .result() around the endpoint. Both halves are described
here: the successful body is bytes, and the failure states its own statuses.
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 Freeze for OpenApiFileOutput
impl RefUnwindSafe for OpenApiFileOutput
impl Send for OpenApiFileOutput
impl Sync for OpenApiFileOutput
impl Unpin for OpenApiFileOutput
impl UnsafeUnpin for OpenApiFileOutput
impl UnwindSafe for OpenApiFileOutput
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.