firecracker_rs_sdk/models/
instance_action_info.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)]
4pub enum ActionType {
5    #[serde(rename = "FlushMetrics")]
6    FlushMetrics,
7    #[serde(rename = "InstanceStart")]
8    InstanceStart,
9    #[serde(rename = "SendCtrlAltDel")]
10    SendCtrlAtlDel,
11}
12
13/// Variant wrapper containing the real action.
14#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)]
15pub struct InstanceActionInfo {
16    /// Enumeration indicating what type of action is contained in the payload
17    /// Required: true
18    /// Enum: [FlushMetrics InstanceStart SendCtrlAltDel
19    #[serde(rename = "action_type")]
20    pub action_type: ActionType,
21}