pub struct SigningInstructions { /* private fields */ }
Available on crate feature
sign-http
only.Expand description
Instructions for applying a signature to an HTTP request.
Implementations§
Source§impl SigningInstructions
impl SigningInstructions
Sourcepub fn into_parts(self) -> (Vec<Header>, Vec<(&'static str, Cow<'static, str>)>)
pub fn into_parts(self) -> (Vec<Header>, Vec<(&'static str, Cow<'static, str>)>)
Returns the headers and query params that should be applied to this request
Sourcepub fn headers(&self) -> impl Iterator<Item = (&str, &str)>
pub fn headers(&self) -> impl Iterator<Item = (&str, &str)>
Returns a reference to the headers that should be added to the request.
Sourcepub fn params(&self) -> &[(&str, Cow<'static, str>)]
pub fn params(&self) -> &[(&str, Cow<'static, str>)]
Returns a reference to the query parameters that should be added to the request.
Sourcepub fn apply_to_request_http0x<B>(self, request: &mut Request<B>)
Available on crate feature http0-compat
only.
pub fn apply_to_request_http0x<B>(self, request: &mut Request<B>)
http0-compat
only.Applies the instructions to the given request
.
Sourcepub fn apply_to_request_http1x<B>(self, request: &mut Request<B>)
Available on crate feature http1
only.
pub fn apply_to_request_http1x<B>(self, request: &mut Request<B>)
http1
only.Applies the instructions to the given request
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SigningInstructions
impl RefUnwindSafe for SigningInstructions
impl Send for SigningInstructions
impl Sync for SigningInstructions
impl Unpin for SigningInstructions
impl UnwindSafe for SigningInstructions
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.