feat(config): wire up match label field
This commit is contained in:
parent
e3dc943a73
commit
db1a3e1247
|
@ -269,7 +269,7 @@ pub fn try_convert_into_match(yaml_match: YAMLMatch) -> Result<(Match, Vec<Warni
|
||||||
Match {
|
Match {
|
||||||
cause,
|
cause,
|
||||||
effect,
|
effect,
|
||||||
label: None,
|
label: yaml_match.label,
|
||||||
id: next_id(),
|
id: next_id(),
|
||||||
},
|
},
|
||||||
warnings,
|
warnings,
|
||||||
|
|
|
@ -58,6 +58,9 @@ impl YAMLMatchGroup {
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
pub struct YAMLMatch {
|
pub struct YAMLMatch {
|
||||||
|
#[serde(default)]
|
||||||
|
pub label: Option<String>,
|
||||||
|
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub trigger: Option<String>,
|
pub trigger: Option<String>,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user