pub struct Request<'a, Q: ?Sized = (), B: ?Sized = ()> {
pub method: Method,
pub path: String,
pub query: Option<&'a Q>,
pub body: Option<&'a B>,
pub headers: Vec<(&'static str, String)>,
pub idempotent: bool,
}Expand description
What a generated method hands to the transport.
Fields§
§method: Method§path: String§query: Option<&'a Q>§body: Option<&'a B>§headers: Vec<(&'static str, String)>§idempotent: boolAdds an Idempotency-Key, which also makes the write safe to retry.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Q, B> Freeze for Request<'a, Q, B>
impl<'a, Q, B> RefUnwindSafe for Request<'a, Q, B>
impl<'a, Q, B> Send for Request<'a, Q, B>
impl<'a, Q, B> Sync for Request<'a, Q, B>
impl<'a, Q, B> Unpin for Request<'a, Q, B>
impl<'a, Q, B> UnsafeUnpin for Request<'a, Q, B>
impl<'a, Q, B> UnwindSafe for Request<'a, Q, B>
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