proxmox-tfa: derive Copy, Clone and PartialEq on TfaType (for GUI)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2023-10-23 11:44:45 +02:00
parent c1819c2549
commit 34e86078c2

View 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.