notify: 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:49:10 +02:00
parent 331fa7a732
commit bd1133fcd2
5 changed files with 6 additions and 0 deletions

View File

@ -84,6 +84,7 @@ pub struct GotifyEndpoint {
#[api]
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
/// The set of properties that can be deleted from a gotify endpoint configuration.
pub enum DeleteableGotifyProperty {
/// Delete `comment`
Comment,

View File

@ -84,6 +84,7 @@ pub struct SendmailConfig {
#[api]
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
/// The set of properties that can be deleted from a sendmail endpoint configuration.
pub enum DeleteableSendmailProperty {
/// Delete `author`
Author,

View File

@ -115,6 +115,7 @@ pub struct SmtpConfig {
#[api]
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
/// The set of properties that can be deleted from a smtp endpoint configuration.
pub enum DeleteableSmtpProperty {
/// Delete `author`
Author,

View File

@ -138,6 +138,7 @@ impl FromStr for Severity {
#[api()]
#[derive(Clone, Debug, Copy, Serialize, Deserialize, PartialEq, Eq, PartialOrd)]
#[serde(rename_all = "kebab-case")]
/// The origin of a notification configuration entry.
pub enum Origin {
/// User-created config entry
UserCreated,

View File

@ -19,6 +19,7 @@ pub const MATCHER_TYPENAME: &str = "matcher";
#[api]
#[derive(Debug, Serialize, Deserialize, Default, Clone, Copy)]
#[serde(rename_all = "kebab-case")]
/// The mode in which the results of matches are combined.
pub enum MatchModeOperator {
/// All match statements have to match (AND)
#[default]
@ -415,6 +416,7 @@ impl FromStr for CalendarMatcher {
#[api]
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
/// The set of matcher properties that can be deleted.
pub enum DeleteableMatcherProperty {
/// Delete `comment`
Comment,