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
Source§fn clone(&self) -> OpenApiStated
fn clone(&self) -> OpenApiStated
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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> 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.