Enum aws_sigv4::http_request::SigningParams
source · #[non_exhaustive]pub enum SigningParams<'a> {
V4(SigningParams<'a, SigningSettings>),
}
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
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 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.
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>
Creates a shared type from an unshared type.