config: add optional name attribute to matchers

This commit is contained in:
Harsh Shandilya 2021-11-16 19:23:06 +05:30
parent d425ae9133
commit e2abe50c03

View file

@ -12,6 +12,8 @@ pub struct Replacements {
#[derive(Clone, Debug, Deserialize)]
pub struct Substitutor {
#[serde(default)]
pub name: String,
pub matcher: Matcher,
pub action: Action,
}