pub struct SignatureOptions {
pub s3: bool,
pub url_encode_form: bool,
}
Expand description
Options that can be used to configure the signature service.
Fields§
§s3: bool
Canonicalize requests according to S3 rules.
url_encode_form: bool
Fold application/x-www-form-urlencoded
bodies into the query string.
Implementations§
Source§impl SignatureOptions
impl SignatureOptions
Sourcepub const S3: Self
pub const S3: Self
Create a SignatureOptions
suitable for use with S3-type authentication.
This sets s3
to true
and url_encode_form
to false
, resulting in AWS SigV4S3-style
canonicalization.
Sourcepub const fn url_encode_form() -> Self
pub const fn url_encode_form() -> Self
Create a SignatureOptions
suitable for use with services that treat
application/x-www-form-urlencoded
bodies as part of the query string.
Some AWS services require this behavior. This typically happens when a query string is too
long to fit in the URL, so a GET
request is transformed into a POST
request with the
query string passed as an HTML form.
This sets s3
to false
and url_encode_form
to true
.
Trait Implementations§
Source§impl Clone for SignatureOptions
impl Clone for SignatureOptions
Source§fn clone(&self) -> SignatureOptions
fn clone(&self) -> SignatureOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SignatureOptions
impl Debug for SignatureOptions
Source§impl Default for SignatureOptions
impl Default for SignatureOptions
Source§fn default() -> SignatureOptions
fn default() -> SignatureOptions
Returns the “default value” for a type. Read more
impl Copy for SignatureOptions
Auto Trait Implementations§
impl Freeze for SignatureOptions
impl RefUnwindSafe for SignatureOptions
impl Send for SignatureOptions
impl Sync for SignatureOptions
impl Unpin for SignatureOptions
impl UnwindSafe for SignatureOptions
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