nomad_client_rs/models/task_lifecycle.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct TaskLifecycle {
5 #[serde(rename = "Hook", skip_serializing_if = "Option::is_none")]
6 pub hook: Option<String>,
7 #[serde(rename = "Sidecar", skip_serializing_if = "Option::is_none")]
8 pub sidecar: Option<bool>,
9}