feat(config): wire up match label field

This commit is contained in:
Federico Terzi 2021-08-13 20:21:15 +02:00
parent e3dc943a73
commit db1a3e1247
2 changed files with 4 additions and 1 deletions

View File

@ -269,7 +269,7 @@ pub fn try_convert_into_match(yaml_match: YAMLMatch) -> Result<(Match, Vec<Warni
Match {
cause,
effect,
label: None,
label: yaml_match.label,
id: next_id(),
},
warnings,

View File

@ -58,6 +58,9 @@ impl YAMLMatchGroup {
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct YAMLMatch {
#[serde(default)]
pub label: Option<String>,
#[serde(default)]
pub trigger: Option<String>,