pub enum OpenApiStated {
Whole(Value),
Named(Vec<OpenApiNamed>),
}Expand description
What one argument states where it comes from.
A body is one value, so an argument read from it states one schema. A query string, a header collection, and a cookie collection are names and values, so an argument read from one of those states a member for each name, which is what a document keys a parameter by.
Variants§
Whole(Value)
One value, which is what a body carries.
Named(Vec<OpenApiNamed>)
One value per name, which is what a collection of names and values carries.
Trait Implementations§
Source§impl Clone for OpenApiStated
impl Clone for OpenApiStated
Auto Trait Implementations§
impl Freeze for OpenApiStated
impl RefUnwindSafe for OpenApiStated
impl Send for OpenApiStated
impl Sync for OpenApiStated
impl Unpin for OpenApiStated
impl UnsafeUnpin for OpenApiStated
impl UnwindSafe for OpenApiStated
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<This> HttpOperationExt<This> for This
impl<This> HttpOperationExt<This> for This
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn program<Program>(&self, program: Program) -> Routes<'_, This>
fn program<Program>(&self, program: Program) -> Routes<'_, This>
Interprets a named program for further route composition.
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.