pub enum OpenApiSource {
Path,
Query,
Header,
Cookie,
Body(&'static str),
Unstated,
}Expand description
Where a document says one argument comes from.
Variants§
Path
A segment the path binds.
Query
A value in the query string.
Header
A header the caller sent.
Cookie
A cookie the caller sent.
Body(&'static str)
The request body, read as the stated media type.
Unstated
Something the caller never states, which a document therefore does not describe.
Trait Implementations§
Source§impl Clone for OpenApiSource
impl Clone for OpenApiSource
Source§fn clone(&self) -> OpenApiSource
fn clone(&self) -> OpenApiSource
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 moreimpl Copy for OpenApiSource
Source§impl Debug for OpenApiSource
impl Debug for OpenApiSource
impl Eq for OpenApiSource
Source§impl PartialEq for OpenApiSource
impl PartialEq for OpenApiSource
impl StructuralPartialEq for OpenApiSource
Auto Trait Implementations§
impl Freeze for OpenApiSource
impl RefUnwindSafe for OpenApiSource
impl Send for OpenApiSource
impl Sync for OpenApiSource
impl Unpin for OpenApiSource
impl UnsafeUnpin for OpenApiSource
impl UnwindSafe for OpenApiSource
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.