#[non_exhaustive]pub enum SigningParams<'a> {
V4(SigningParams<'a, SigningSettings>),
V4a(SigningParams<'a, SigningSettings>),
}
Available on crate feature
sign-http
only.Expand description
Parameters for signing an HTTP request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V4(SigningParams<'a, SigningSettings>)
Sign with the SigV4 algorithm
V4a(SigningParams<'a, SigningSettings>)
Available on crate feature
sigv4a
only.Sign with the SigV4a algorithm
Implementations§
Source§impl<'a> SigningParams<'a>
impl<'a> SigningParams<'a>
Sourcepub fn region(&self) -> Option<&str>
pub fn region(&self) -> Option<&str>
If the signing params are for SigV4, return the region. Otherwise, return None
.
Sourcepub fn region_set(&self) -> Option<&str>
Available on crate feature sigv4a
only.
pub fn region_set(&self) -> Option<&str>
sigv4a
only.If the signing params are for SigV4a, return the region set. Otherwise, return None
.
Sourcepub fn settings(&self) -> &SigningSettings
pub fn settings(&self) -> &SigningSettings
Return a reference to the settings held by the signing params.
Sourcepub fn settings_mut(&mut self) -> &mut SigningSettings
pub fn settings_mut(&mut self) -> &mut SigningSettings
Return a mutable reference to the settings held by the signing params.
Sourcepub fn time(&self) -> &SystemTime
pub fn time(&self) -> &SystemTime
Return a reference to the time in the signing params.
Sourcepub fn signature_version(&self) -> SignatureVersion
pub fn signature_version(&self) -> SignatureVersion
Return the name of the signing scheme
Trait Implementations§
Source§impl<'a> Debug for SigningParams<'a>
impl<'a> Debug for SigningParams<'a>
Source§impl<'a> From<SigningParams<'a, SigningSettings>> for SigningParams<'a>
impl<'a> From<SigningParams<'a, SigningSettings>> for SigningParams<'a>
Source§fn from(value: SigningParams<'a, SigningSettings>) -> Self
fn from(value: SigningParams<'a, SigningSettings>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<SigningParams<'a, SigningSettings>> for SigningParams<'a>
Available on crate feature sigv4a
only.
impl<'a> From<SigningParams<'a, SigningSettings>> for SigningParams<'a>
Available on crate feature
sigv4a
only.Source§fn from(value: SigningParams<'a, SigningSettings>) -> Self
fn from(value: SigningParams<'a, SigningSettings>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for SigningParams<'a>
impl<'a> !RefUnwindSafe for SigningParams<'a>
impl<'a> Send for SigningParams<'a>
impl<'a> Sync for SigningParams<'a>
impl<'a> Unpin for SigningParams<'a>
impl<'a> !UnwindSafe for SigningParams<'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
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.