]> git.proxmox.com Git - proxmox.git/commitdiff
proxmox-tfa: derive Copy, Clone and PartialEq on TfaType (for GUI)
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 23 Oct 2023 09:44:45 +0000 (11:44 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 23 Oct 2023 09:44:45 +0000 (11:44 +0200)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
proxmox-tfa/src/types.rs

index 78deda695e62cbafc35993628f8cf0ddd9b1baa6..c6e4592115129ad3433080941778d1da24b69f32 100644 (file)
@@ -5,7 +5,7 @@ use proxmox_schema::api;
 
 #[cfg_attr(feature = "api-types", api)]
 /// A TFA entry type.
-#[derive(Debug, Deserialize, Serialize)]
+#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq)]
 #[serde(rename_all = "lowercase")]
 pub enum TfaType {
     /// A TOTP entry type.