pub struct RequestParts {
pub method: Method,
pub path: String,
pub query: Vec<(String, String)>,
pub headers: HeaderMap,
pub body: Option<Bytes>,
pub timeout: Option<Duration>,
}Expand description
A request before it is sent. The loop clones it for each attempt and
hands the clone to Authenticator::sign.
Fields§
§method: MethodThe HTTP method.
path: StringThe path, resolved against the client’s base URL.
query: Vec<(String, String)>The query parameters.
headers: HeaderMapThe headers.
body: Option<Bytes>The body, sent as given: bytes, so it need not be text.
timeout: Option<Duration>How long each attempt may take, in place of the client’s timeout.
None keeps the client’s.
Implementations§
Trait Implementations§
Source§impl Clone for RequestParts
impl Clone for RequestParts
Auto Trait Implementations§
impl !Freeze for RequestParts
impl RefUnwindSafe for RequestParts
impl Send for RequestParts
impl Sync for RequestParts
impl Unpin for RequestParts
impl UnsafeUnpin for RequestParts
impl UnwindSafe for RequestParts
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