pub struct WireRequest<'a> {
pub method: &'a str,
pub path: &'a str,
pub path_params: Vec<(String, String)>,
pub query: Vec<(String, String)>,
pub headers: Vec<(String, String)>,
pub body: Option<String>,
}Expand description
One call against an OpenAPI-described route — a runtime-discovered cassette operation, or a core operation from a sealed contract.
The path is the document’s own template, {name} placeholders included, and
is contract-relative: joining it onto a base is crate::path’s job, and
which base is the transport’s. A caller therefore cannot address a host by
constructing one of these.
Fields§
§method: &'a strThe HTTP verb, uppercased.
path: &'a strThe public path template, {name} placeholders included.
path_params: Vec<(String, String)>Values for those placeholders, by placeholder name.
query: Vec<(String, String)>Query parameters, under their wire names.
headers: Vec<(String, String)>Header parameters, under their wire names.
body: Option<String>A JSON request body, when the operation takes one.
Trait Implementations§
Source§impl<'a> Clone for WireRequest<'a>
impl<'a> Clone for WireRequest<'a>
Source§fn clone(&self) -> WireRequest<'a>
fn clone(&self) -> WireRequest<'a>
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 moreSource§impl<'a> Debug for WireRequest<'a>
impl<'a> Debug for WireRequest<'a>
Source§impl<'a> Default for WireRequest<'a>
impl<'a> Default for WireRequest<'a>
Source§fn default() -> WireRequest<'a>
fn default() -> WireRequest<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for WireRequest<'a>
impl<'a> RefUnwindSafe for WireRequest<'a>
impl<'a> Send for WireRequest<'a>
impl<'a> Sync for WireRequest<'a>
impl<'a> Unpin for WireRequest<'a>
impl<'a> UnsafeUnpin for WireRequest<'a>
impl<'a> UnwindSafe for WireRequest<'a>
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