1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
use crate::{CfgAction, CfgLabel}; #[derive(Serialize, Deserialize, Debug, PartialEq, Eq)] #[serde(rename_all = "snake_case")] pub struct CfgEndBlock { pub label: CfgLabel, pub actions: Vec<CfgAction>, } #[derive(Serialize, Deserialize, Debug, PartialEq, Eq)] #[serde(rename_all = "snake_case")] pub struct CfgReturnBlock { pub label: CfgLabel, pub actions: Vec<CfgAction>, } #[derive(Serialize, Deserialize, Debug, PartialEq, Eq)] #[serde(rename_all = "snake_case")] pub struct CfgSimpleBlock { pub label: CfgLabel, pub actions: Vec<CfgAction>, pub next: CfgLabel, } #[derive(Serialize, Deserialize, Debug, PartialEq, Eq)] #[serde(rename_all = "snake_case")] pub struct CfgThrowBlock { pub label: CfgLabel, pub actions: Vec<CfgAction>, }