From 1236f2bdd716ccc336b7a15b98e3acfcd509658d Mon Sep 17 00:00:00 2001 From: Joonas Bergius Date: Tue, 11 Jun 2024 13:53:54 -0500 Subject: [PATCH] chore: Derive Clone for JsonWebKey Signed-off-by: Joonas Bergius --- src/jwk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jwk.rs b/src/jwk.rs index 131bc79..131c901 100644 --- a/src/jwk.rs +++ b/src/jwk.rs @@ -14,7 +14,7 @@ const JWK_KEY_TYPE: &str = "OKP"; const JWK_ALGORITHM: &str = "EdDSA"; const JWK_SUBTYPE: &str = "Ed25519"; -#[derive(Debug, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct JsonWebKey { /// Intended use of the JWK, this is based on the KeyPairType of the KeyPair the JWK is based on, using "enc" for KeyPairType::Curve, otherwise "sig" #[serde(rename = "use")]