From c606fdaa889a6ffcb6e52eb9c6c5f73de146364e Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 22 Oct 2024 15:25:52 +0200 Subject: [PATCH] api-types: add missing doc-comment description for api enums this is used as description in the api schema Signed-off-by: Thomas Lamprecht --- pbs-api-types/src/lib.rs | 1 + pbs-api-types/src/tape/drive.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/pbs-api-types/src/lib.rs b/pbs-api-types/src/lib.rs index 635292a5..460c7da7 100644 --- a/pbs-api-types/src/lib.rs +++ b/pbs-api-types/src/lib.rs @@ -270,6 +270,7 @@ pub enum NodePowerCommand { #[api()] #[derive(Eq, PartialEq, Debug, Serialize, Deserialize)] #[serde(rename_all = "lowercase")] +/// The state (result) of a finished worker task. pub enum TaskStateType { /// Ok OK, diff --git a/pbs-api-types/src/tape/drive.rs b/pbs-api-types/src/tape/drive.rs index 2b788bd6..e00665cd 100644 --- a/pbs-api-types/src/tape/drive.rs +++ b/pbs-api-types/src/tape/drive.rs @@ -112,6 +112,7 @@ pub struct MamAttribute { #[api()] #[derive(Serialize, Deserialize, Copy, Clone, Debug, PartialOrd, PartialEq)] +/// The density of a tape medium, derived from the LTO version. pub enum TapeDensity { /// Unknown (no media loaded) Unknown,