pub enum TsSource {
Path,
Query,
Header,
Cookie,
Body,
Form,
Multipart,
Raw,
Unstated,
}Expand description
Where a call says one argument goes.
A caller states an argument once; what it becomes on the wire is what the declaration said, so the generated module carries the role rather than a hand-written request.
Variants§
Path
A segment the path binds.
Query
A value in the query string.
Header
A header the caller sends.
Cookie
A cookie the caller sends.
Body
The request body, written as a document.
Form
The request body, written as a form.
Multipart
The request body, written as parts.
Raw
The request body, sent as it stands.
Unstated
Something a caller does not state.
Implementations§
Trait Implementations§
impl Copy for TsSource
impl Eq for TsSource
impl StructuralPartialEq for TsSource
Auto Trait Implementations§
impl Freeze for TsSource
impl RefUnwindSafe for TsSource
impl Send for TsSource
impl Sync for TsSource
impl Unpin for TsSource
impl UnsafeUnpin for TsSource
impl UnwindSafe for TsSource
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.