Enum jwt_compact::jwk::KeyType
source · #[non_exhaustive]pub enum KeyType {
Rsa,
EllipticCurve,
Symmetric,
KeyPair,
}
Expand description
Type of a JsonWebKey
.
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.
Rsa
Public or private RSA key. Corresponds to the RSA
value of the kty
field for JWKs.
EllipticCurve
Public or private key in an ECDSA crypto system. Corresponds to the EC
value
of the kty
field for JWKs.
Symmetric
Symmetric key. Corresponds to the oct
value of the kty
field for JWKs.
KeyPair
Generic asymmetric keypair. Corresponds to the OKP
value of the kty
field for JWKs.
Trait Implementations§
source§impl PartialEq for KeyType
impl PartialEq for KeyType
impl Copy for KeyType
impl Eq for KeyType
impl StructuralEq for KeyType
impl StructuralPartialEq for KeyType
Auto Trait Implementations§
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnwindSafe for KeyType
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