diff --git a/proxmox-tfa/src/types.rs b/proxmox-tfa/src/types.rs index f87022e8..78deda69 100644 --- a/proxmox-tfa/src/types.rs +++ b/proxmox-tfa/src/types.rs @@ -112,6 +112,7 @@ pub struct TfaUpdateInfo { pub recovery: Vec, } +#[cfg(feature = "api")] impl TfaUpdateInfo { pub(crate) fn with_id(id: String) -> Self { Self {