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 {
|
||||
cause,
|
||||
effect,
|
||||
label: None,
|
||||
label: yaml_match.label,
|
||||
id: next_id(),
|
||||
},
|
||||
warnings,
|
||||
|
|
|
@ -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>,
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user