Add the ExitAction enum.

This commit is contained in:
Bauke 2022-10-28 13:35:34 +02:00
parent 4d62527e23
commit 1eecfa7146
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
//! Action to take on hook exit.
use serde::{Deserialize, Serialize};
/// Action to take on hook exit.
#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "lowercase")]
pub enum ExitAction {
Continue,
Stop,
}

View File

@ -7,9 +7,11 @@ use {
serde::{Deserialize, Serialize}, serde::{Deserialize, Serialize},
}; };
mod exit_action;
mod general; mod general;
mod task; mod task;
pub use exit_action::*;
pub use general::*; pub use general::*;
pub use task::*; pub use task::*;