pub enum SignatureVersion {
V1_0 = 1,
V2_0 = 2,
}Expand description
Signature version enum for Alibaba Cloud STS API.
- V1_0: HMAC-SHA1 signature (version 1.0) - default, compatible with Alibaba Cloud STS
- V2_0: HMAC-SHA256 signature (version 2.0) - more secure but may not be supported
Variants§
V1_0 = 1
HMAC-SHA1 signature (version 1.0) - compatible with Alibaba Cloud STS API
V2_0 = 2
HMAC-SHA256 signature (version 2.0) - more secure but may not be supported by all regions
Implementations§
Source§impl SignatureVersion
impl SignatureVersion
Sourcepub fn as_method_str(&self) -> &'static str
pub fn as_method_str(&self) -> &'static str
Returns the signature method string for the API request.
Sourcepub fn as_version_str(&self) -> &'static str
pub fn as_version_str(&self) -> &'static str
Returns the version string for the API request.
Trait Implementations§
Source§impl Clone for SignatureVersion
impl Clone for SignatureVersion
Source§fn clone(&self) -> SignatureVersion
fn clone(&self) -> SignatureVersion
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 SignatureVersion
impl Debug for SignatureVersion
Source§impl Default for SignatureVersion
impl Default for SignatureVersion
Source§fn default() -> SignatureVersion
fn default() -> SignatureVersion
Returns the “default value” for a type. Read more
Source§impl PartialEq for SignatureVersion
impl PartialEq for SignatureVersion
impl Copy for SignatureVersion
impl Eq for SignatureVersion
impl StructuralPartialEq for SignatureVersion
Auto Trait Implementations§
impl Freeze for SignatureVersion
impl RefUnwindSafe for SignatureVersion
impl Send for SignatureVersion
impl Sync for SignatureVersion
impl Unpin for SignatureVersion
impl UnwindSafe for SignatureVersion
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