hooked/source/config/exit_action.rs

18 lines
303 B
Rust

//! Action to take on hook exit.
use serde::{Deserialize, Serialize};
/// Action to take on hook exit.
#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "snake_case")]
pub enum ExitAction {
Continue,
Stop,
}
impl Default for ExitAction {
fn default() -> Self {
Self::Stop
}
}