#[non_exhaustive]pub enum SignAlgorithm {
RsaPkcs1Sha256,
RsaPssSha256,
EcdsaSha256,
EcdsaSha384,
Ed25519,
}Expand description
Signature algorithm.
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.
RsaPkcs1Sha256
RSASSA-PKCS1-v1_5 with SHA-256.
RsaPssSha256
RSASSA-PSS with SHA-256.
EcdsaSha256
ECDSA with SHA-256.
EcdsaSha384
ECDSA with SHA-384.
Ed25519
Ed25519 (pure EdDSA, no hash function).
Trait Implementations§
Source§impl Clone for SignAlgorithm
impl Clone for SignAlgorithm
Source§fn clone(&self) -> SignAlgorithm
fn clone(&self) -> SignAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SignAlgorithm
Source§impl Debug for SignAlgorithm
impl Debug for SignAlgorithm
Source§impl<'de> Deserialize<'de> for SignAlgorithm
impl<'de> Deserialize<'de> for SignAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SignAlgorithm
Source§impl PartialEq for SignAlgorithm
impl PartialEq for SignAlgorithm
Source§fn eq(&self, other: &SignAlgorithm) -> bool
fn eq(&self, other: &SignAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SignAlgorithm
impl Serialize for SignAlgorithm
impl StructuralPartialEq for SignAlgorithm
Auto Trait Implementations§
impl Freeze for SignAlgorithm
impl RefUnwindSafe for SignAlgorithm
impl Send for SignAlgorithm
impl Sync for SignAlgorithm
impl Unpin for SignAlgorithm
impl UnsafeUnpin for SignAlgorithm
impl UnwindSafe for SignAlgorithm
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