apt-api-types: add missing doc-comment description for api enums

this is used as description in the api schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2024-10-22 14:48:47 +02:00
parent 1b70270b2d
commit 331fa7a732

View File

@ -8,6 +8,7 @@ use proxmox_schema::api;
#[api] #[api]
#[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq, Eq)] #[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "lowercase")] #[serde(rename_all = "lowercase")]
/// The type of format used for an APT repository.
pub enum APTRepositoryFileType { pub enum APTRepositoryFileType {
/// One-line-style format /// One-line-style format
List, List,
@ -21,6 +22,7 @@ serde_plain::derive_fromstr_from_deserialize!(APTRepositoryFileType);
#[api] #[api]
#[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq, Eq)] #[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")] #[serde(rename_all = "kebab-case")]
/// The type of an APT package.
pub enum APTRepositoryPackageType { pub enum APTRepositoryPackageType {
/// Debian package /// Debian package
Deb, Deb,