#[non_exhaustive]pub enum KeyAlgorithm {
Ed25519,
X25519,
Ed448,
X448,
P256,
P384,
MlKem512,
MlKem768,
MlKem1024,
MlDsa44,
MlDsa65,
MlDsa87,
}Expand description
Key pair algorithms of POST /v2/keys/generate.
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.
Ed25519
Ed25519 signing.
X25519
X25519 key agreement.
Ed448
Ed448 signing.
X448
X448 key agreement.
P256
NIST P-256.
P384
NIST P-384.
MlKem512
ML-KEM-512.
MlKem768
ML-KEM-768.
MlKem1024
ML-KEM-1024.
MlDsa44
ML-DSA-44.
MlDsa65
ML-DSA-65.
MlDsa87
ML-DSA-87.
Trait Implementations§
Source§impl Clone for KeyAlgorithm
impl Clone for KeyAlgorithm
impl Copy for KeyAlgorithm
Source§impl Debug for KeyAlgorithm
impl Debug for KeyAlgorithm
Source§impl Default for KeyAlgorithm
impl Default for KeyAlgorithm
Source§impl<'de> Deserialize<'de> for KeyAlgorithm
impl<'de> Deserialize<'de> for KeyAlgorithm
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 KeyAlgorithm
Source§impl Hash for KeyAlgorithm
impl Hash for KeyAlgorithm
Source§impl PartialEq for KeyAlgorithm
impl PartialEq for KeyAlgorithm
Source§impl Serialize for KeyAlgorithm
impl Serialize for KeyAlgorithm
impl StructuralPartialEq for KeyAlgorithm
Auto Trait Implementations§
impl Forget for KeyAlgorithm
impl Freeze for KeyAlgorithm
impl Move for KeyAlgorithm
impl RefUnwindSafe for KeyAlgorithm
impl Send for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Unpin for KeyAlgorithm
impl UnsafeUnpin for KeyAlgorithm
impl UnwindSafe for KeyAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.