소스 검색

Flatten team structure into ping configuration

Mark Rousskov 5 년 전
부모
커밋
28abf02c7c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/config.rs

+ 1 - 0
src/config.rs

@@ -25,6 +25,7 @@ pub(crate) struct Config {
 pub(crate) struct PingConfig {
     // team name -> message
     // message will have the cc string appended
+    #[serde(flatten)]
     pub(crate) teams: HashMap<String, PingTeamConfig>,
 }