config: allow to configure who receives job notify emails

This commit is contained in:
Dietmar Maurer
2020-11-04 10:42:22 +01:00
parent 84006f98b2
commit 6e545d0058
3 changed files with 54 additions and 0 deletions

View File

@ -1154,3 +1154,16 @@ pub struct APTUpdateInfo {
/// URL under which the package's changelog can be retrieved
pub change_log_url: String,
}
#[api()]
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
/// When do we send notifications
pub enum Notify {
/// Never send notification
Never,
/// Send notifications for failed and sucessful jobs
Always,
/// Send notifications for failed jobs only
Error,
}