#[non_exhaustive]pub struct SigningSettings {
pub percent_encoding_mode: PercentEncodingMode,
pub payload_checksum_kind: PayloadChecksumKind,
pub signature_location: SignatureLocation,
pub expires_in: Option<Duration>,
pub excluded_headers: Option<Vec<Cow<'static, str>>>,
pub uri_path_normalization_mode: UriPathNormalizationMode,
pub session_token_mode: SessionTokenMode,
pub session_token_name_override: Option<&'static str>,
}
sign-http
only.Expand description
HTTP-specific signing settings
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.percent_encoding_mode: PercentEncodingMode
Specifies how to encode the request URL when signing. Some services do not decode the path prior to checking the signature, requiring clients to actually double-encode the URI in creating the canonical request in order to pass a signature check.
payload_checksum_kind: PayloadChecksumKind
Add an additional checksum header
signature_location: SignatureLocation
Where to put the signature
expires_in: Option<Duration>
For presigned requests, how long the presigned request is valid for
excluded_headers: Option<Vec<Cow<'static, str>>>
Headers that should be excluded from the signing process
uri_path_normalization_mode: UriPathNormalizationMode
Specifies whether the absolute path component of the URI should be normalized during signing.
session_token_mode: SessionTokenMode
Some services require X-Amz-Security-Token to be included in the canonical request. Other services require only it to be added after calculating the signature.
session_token_name_override: Option<&'static str>
Some services require an alternative session token header or query param instead of
x-amz-security-token
or X-Amz-Security-Token
.
Trait Implementations§
Source§impl Clone for SigningSettings
impl Clone for SigningSettings
Source§fn clone(&self) -> SigningSettings
fn clone(&self) -> SigningSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SigningSettings
impl Debug for SigningSettings
Source§impl Default for SigningSettings
impl Default for SigningSettings
Source§impl PartialEq for SigningSettings
impl PartialEq for SigningSettings
impl StructuralPartialEq for SigningSettings
Auto Trait Implementations§
impl Freeze for SigningSettings
impl RefUnwindSafe for SigningSettings
impl Send for SigningSettings
impl Sync for SigningSettings
impl Unpin for SigningSettings
impl UnwindSafe for SigningSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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