pub struct CanonicalizeConfig { /* private fields */ }
Expand description
Configuration for computing the canonical “signature string” of a request.
Implementations§
Source§impl CanonicalizeConfig
impl CanonicalizeConfig
Sourcepub fn with_headers(self, headers: Vec<Header>) -> Self
pub fn with_headers(self, headers: Vec<Header>) -> Self
Set the headers to include in the signature
Sourcepub fn set_headers(&mut self, headers: Vec<Header>) -> &mut Self
pub fn set_headers(&mut self, headers: Vec<Header>) -> &mut Self
Set the headers to include in the signature
Sourcepub fn headers(&self) -> Option<impl IntoIterator<Item = &Header>>
pub fn headers(&self) -> Option<impl IntoIterator<Item = &Header>>
Get the headers to include in the signature
Sourcepub fn with_signature_created(self, signature_created: HeaderValue) -> Self
pub fn with_signature_created(self, signature_created: HeaderValue) -> Self
Set the “signature created” pseudo-header
Sourcepub fn set_signature_created(
&mut self,
signature_created: HeaderValue,
) -> &mut Self
pub fn set_signature_created( &mut self, signature_created: HeaderValue, ) -> &mut Self
Set the “signature created” pseudo-header
Sourcepub fn signature_created(&self) -> Option<&HeaderValue>
pub fn signature_created(&self) -> Option<&HeaderValue>
Get the “signature created” pseudo-header
Sourcepub fn with_signature_expires(self, signature_expires: HeaderValue) -> Self
pub fn with_signature_expires(self, signature_expires: HeaderValue) -> Self
Set the “signature expires” pseudo-header
Sourcepub fn set_signature_expires(
&mut self,
signature_expires: HeaderValue,
) -> &mut Self
pub fn set_signature_expires( &mut self, signature_expires: HeaderValue, ) -> &mut Self
Set the “signature expires” pseudo-header
Sourcepub fn signature_expires(&self) -> Option<&HeaderValue>
pub fn signature_expires(&self) -> Option<&HeaderValue>
Get the “signature expires” pseudo-header
Trait Implementations§
Source§impl Default for CanonicalizeConfig
impl Default for CanonicalizeConfig
Source§fn default() -> CanonicalizeConfig
fn default() -> CanonicalizeConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CanonicalizeConfig
impl RefUnwindSafe for CanonicalizeConfig
impl Send for CanonicalizeConfig
impl Sync for CanonicalizeConfig
impl Unpin for CanonicalizeConfig
impl UnwindSafe for CanonicalizeConfig
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 more