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

18 lines
318 B
Rust

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