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)]
|
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
|
|
|
|
}
|
|
|
|
}
|