#[non_exhaustive]#[repr(i64)]pub enum SupportedAlgorithm {
Show 15 variants
RS512 = -259,
RS384 = -258,
RS256 = -257,
ESP521 = -52,
ESP384 = -51,
ESP256 = -9,
ES512 = -36,
ES384 = -35,
ES256 = -7,
PS512 = -39,
PS384 = -38,
PS256 = -37,
Ed25519 = -19,
Ed448 = -53,
EdDSA = -8,
}Expand description
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.
RS512 = -259
RSASSA-PKCS1-v1_5 using SHA-512, Recommended: No
RS384 = -258
RSASSA-PKCS1-v1_5 using SHA-384, Recommended: No
RS256 = -257
RSASSA-PKCS1-v1_5 using SHA-256, Recommended: No
ESP521 = -52
ECDSA using P-521 curve and SHA-512, Recommended: Yes
ESP384 = -51
ECDSA using P-384 curve and SHA-384, Recommended: Yes
ESP256 = -9
ECDSA using P-256 curve and SHA-256, Recommended: Yes
ES512 = -36
ECDSA w/ SHA-512, Recommended: Deprecated
ES384 = -35
ECDSA w/ SHA-384, Recommended: Deprecated
ES256 = -7
ECDSA w/ SHA-256, Recommended: Deprecated
PS512 = -39
RSASSA-PSS w/ SHA-512, Recommended: Yes
PS384 = -38
RSASSA-PSS w/ SHA-384, Recommended: Yes
PS256 = -37
RSASSA-PSS w/ SHA-256, Recommended: Yes
Ed25519 = -19
EdDSA using Ed25519 curve, Recommended: Yes
Ed448 = -53
EdDSA using E448 curve, Recommended: Yes
EdDSA = -8
EdDSA
Trait Implementations§
Source§impl Clone for SupportedAlgorithm
impl Clone for SupportedAlgorithm
impl Copy for SupportedAlgorithm
Source§impl Debug for SupportedAlgorithm
impl Debug for SupportedAlgorithm
Source§impl<'de> Deserialize<'de> for SupportedAlgorithm
impl<'de> Deserialize<'de> for SupportedAlgorithm
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 SupportedAlgorithm
Source§impl From<&SupportedAlgorithm> for i64
impl From<&SupportedAlgorithm> for i64
Source§fn from(value: &SupportedAlgorithm) -> Self
fn from(value: &SupportedAlgorithm) -> Self
Converts to this type from the input type.
Source§impl From<SupportedAlgorithm> for CredentialParameters
impl From<SupportedAlgorithm> for CredentialParameters
Source§fn from(value: SupportedAlgorithm) -> Self
fn from(value: SupportedAlgorithm) -> Self
Converts to this type from the input type.
Source§impl From<SupportedAlgorithm> for i64
impl From<SupportedAlgorithm> for i64
Source§fn from(value: SupportedAlgorithm) -> Self
fn from(value: SupportedAlgorithm) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SupportedAlgorithm
impl PartialEq for SupportedAlgorithm
Source§impl Serialize for SupportedAlgorithm
impl Serialize for SupportedAlgorithm
impl StructuralPartialEq for SupportedAlgorithm
Auto Trait Implementations§
impl Freeze for SupportedAlgorithm
impl RefUnwindSafe for SupportedAlgorithm
impl Send for SupportedAlgorithm
impl Sync for SupportedAlgorithm
impl Unpin for SupportedAlgorithm
impl UnsafeUnpin for SupportedAlgorithm
impl UnwindSafe for SupportedAlgorithm
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