pub struct SignRequest<'a> {
pub method: &'a str,
pub authority: &'a str,
pub path: &'a str,
pub query: Option<&'a str>,
pub payload: SignPayload<'a>,
}Expand description
The parts of one attempt that a signer signs, as the request carries them.
Fields§
§method: &'a strThe method: GET, POST, PUT, or DELETE.
The host[:port] of the request, which is the Host header of an
HTTP/1.1 request and the :authority of an HTTP/2 request.
It has no default port of the scheme. An IPv6 literal keeps its brackets.
path: &'a strThe path of the request target, as the request carries it. It includes the base path of a mirror, and the escapes of the caller.
query: Option<&'a str>The query string of the request target, without the ?.
It is None if the target has no ?. A target that ends in ? has an
empty query.
payload: SignPayload<'a>The body of the request.
Trait Implementations§
Source§impl<'a> Clone for SignRequest<'a>
impl<'a> Clone for SignRequest<'a>
impl<'a> Copy for SignRequest<'a>
Auto Trait Implementations§
impl<'a> Forget for SignRequest<'a>
impl<'a> Freeze for SignRequest<'a>
impl<'a> Move for SignRequest<'a>
impl<'a> RefUnwindSafe for SignRequest<'a>
impl<'a> Send for SignRequest<'a>
impl<'a> Sync for SignRequest<'a>
impl<'a> Unpin for SignRequest<'a>
impl<'a> UnsafeUnpin for SignRequest<'a>
impl<'a> UnwindSafe for SignRequest<'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