Enum http_signatures::SignatureAlgorithm
[−]
[src]
pub enum SignatureAlgorithm { RSA(ShaSize), HMAC(ShaSize), }
Which algorithm should be used to create an HTTP header.
This library uses Ring 0.11.0 for creating and verifying hashes, so this determines whether the library will use Ring's RSA Signatures or Rings's HMAC signatures.
Variants
RSA(ShaSize)
RSA
HMAC(ShaSize)
HMAC
Trait Implementations
impl Debug for SignatureAlgorithm
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for SignatureAlgorithm
[src]
fn clone(&self) -> SignatureAlgorithm
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> TryFrom<&'a str> for SignatureAlgorithm
[src]
Convert an &str into a SignatureAlgorithm
type Error = DecodeError
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(s: &'a str) -> Result<Self, Self::Error>
[src]
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl From<SignatureAlgorithm> for &'static str
[src]
Convert a SignatureAlgorithm into an &str
fn from(alg: SignatureAlgorithm) -> Self
[src]
Performs the conversion.