pub struct OpenApiBytesOutput;Expand description
Describes raw-byte answers in a document.
Trait Implementations§
Source§impl<From> OpenApiOutputAlg<From> for OpenApiBytesOutput
Describes the bytes an endpoint answers with, whatever produced them.
impl<From> OpenApiOutputAlg<From> for OpenApiBytesOutput
Describes the bytes an endpoint answers with, whatever produced them.
What a caller receives is bytes, so the document says so: a shape would describe the value the handler answered with rather than the body it becomes, and a body produced over time has no shape to describe at all.
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 OpenApiBytesOutput
impl RefUnwindSafe for OpenApiBytesOutput
impl Send for OpenApiBytesOutput
impl Sync for OpenApiBytesOutput
impl Unpin for OpenApiBytesOutput
impl UnsafeUnpin for OpenApiBytesOutput
impl UnwindSafe for OpenApiBytesOutput
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.