hooked/hooked-library/source/config/exit_action.rs

18 lines
318 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, Eq, PartialEq, Serialize)]
2022-10-28 12:37:42 +00:00
#[serde(rename_all = "snake_case")]
2022-10-28 11:35:34 +00:00
pub enum ExitAction {
Continue,
Stop,
}
2022-10-28 12:03:32 +00:00
impl Default for ExitAction {
fn default() -> Self {
Self::Stop
}
}