hooked/source/config/exit_action.rs

18 lines
302 B
Rust
Raw Normal View History

2022-10-28 11:35:34 +00:00
//! 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,
}
2022-10-28 12:03:32 +00:00
impl Default for ExitAction {
fn default() -> Self {
Self::Stop
}
}