@@ -116,16 +116,37 @@ pub struct ConfigNotify {
116
116
#[ serde( default = "defaults::notify_reminder_backoff_limit" ) ]
117
117
pub reminder_backoff_limit : u16 ,
118
118
119
+ #[ cfg( feature = "notifier-email" ) ]
119
120
pub email : Option < ConfigNotifyEmail > ,
121
+
122
+ #[ cfg( feature = "notifier-twilio" ) ]
120
123
pub twilio : Option < ConfigNotifyTwilio > ,
124
+
125
+ #[ cfg( feature = "notifier-slack" ) ]
121
126
pub slack : Option < ConfigNotifySlack > ,
127
+
128
+ #[ cfg( feature = "notifier-zulip" ) ]
122
129
pub zulip : Option < ConfigNotifyZulip > ,
130
+
131
+ #[ cfg( feature = "notifier-telegram" ) ]
123
132
pub telegram : Option < ConfigNotifyTelegram > ,
133
+
134
+ #[ cfg( feature = "notifier-pushover" ) ]
124
135
pub pushover : Option < ConfigNotifyPushover > ,
136
+
137
+ #[ cfg( feature = "notifier-gotify" ) ]
125
138
pub gotify : Option < ConfigNotifyGotify > ,
139
+
140
+ #[ cfg( feature = "notifier-xmpp" ) ]
126
141
pub xmpp : Option < ConfigNotifyXMPP > ,
142
+
143
+ #[ cfg( feature = "notifier-matrix" ) ]
127
144
pub matrix : Option < ConfigNotifyMatrix > ,
145
+
146
+ #[ cfg( feature = "notifier-webex" ) ]
128
147
pub webex : Option < ConfigNotifyWebEx > ,
148
+
149
+ #[ cfg( feature = "notifier-webhook" ) ]
129
150
pub webhook : Option < ConfigNotifyWebHook > ,
130
151
}
131
152
@@ -162,6 +183,7 @@ pub struct ConfigPluginsRabbitMQ {
162
183
pub queue_loaded_retry_delay : Option < u64 > ,
163
184
}
164
185
186
+ #[ cfg( feature = "notifier-email" ) ]
165
187
#[ derive( Deserialize ) ]
166
188
pub struct ConfigNotifyEmail {
167
189
pub to : String ,
@@ -183,6 +205,7 @@ pub struct ConfigNotifyEmail {
183
205
pub reminders_only : bool ,
184
206
}
185
207
208
+ #[ cfg( feature = "notifier-twilio" ) ]
186
209
#[ derive( Deserialize ) ]
187
210
pub struct ConfigNotifyTwilio {
188
211
pub to : Vec < String > ,
@@ -194,6 +217,7 @@ pub struct ConfigNotifyTwilio {
194
217
pub reminders_only : bool ,
195
218
}
196
219
220
+ #[ cfg( feature = "notifier-slack" ) ]
197
221
#[ derive( Deserialize ) ]
198
222
pub struct ConfigNotifySlack {
199
223
pub hook_url : SerdeUrl ,
@@ -205,6 +229,7 @@ pub struct ConfigNotifySlack {
205
229
pub reminders_only : bool ,
206
230
}
207
231
232
+ #[ cfg( feature = "notifier-zulip" ) ]
208
233
#[ derive( Deserialize ) ]
209
234
pub struct ConfigNotifyZulip {
210
235
pub bot_email : String ,
@@ -216,6 +241,7 @@ pub struct ConfigNotifyZulip {
216
241
pub reminders_only : bool ,
217
242
}
218
243
244
+ #[ cfg( feature = "notifier-telegram" ) ]
219
245
#[ derive( Deserialize ) ]
220
246
pub struct ConfigNotifyTelegram {
221
247
pub bot_token : String ,
@@ -225,6 +251,7 @@ pub struct ConfigNotifyTelegram {
225
251
pub reminders_only : bool ,
226
252
}
227
253
254
+ #[ cfg( feature = "notifier-pushover" ) ]
228
255
#[ derive( Deserialize ) ]
229
256
pub struct ConfigNotifyPushover {
230
257
pub app_token : String ,
@@ -234,6 +261,7 @@ pub struct ConfigNotifyPushover {
234
261
pub reminders_only : bool ,
235
262
}
236
263
264
+ #[ cfg( feature = "notifier-gotify" ) ]
237
265
#[ derive( Deserialize ) ]
238
266
pub struct ConfigNotifyGotify {
239
267
pub app_url : SerdeUrl ,
@@ -243,6 +271,7 @@ pub struct ConfigNotifyGotify {
243
271
pub reminders_only : bool ,
244
272
}
245
273
274
+ #[ cfg( feature = "notifier-xmpp" ) ]
246
275
#[ derive( Deserialize ) ]
247
276
pub struct ConfigNotifyXMPP {
248
277
pub to : String ,
@@ -253,6 +282,7 @@ pub struct ConfigNotifyXMPP {
253
282
pub reminders_only : bool ,
254
283
}
255
284
285
+ #[ cfg( feature = "notifier-matrix" ) ]
256
286
#[ derive( Deserialize ) ]
257
287
pub struct ConfigNotifyMatrix {
258
288
pub homeserver_url : SerdeUrl ,
@@ -263,6 +293,7 @@ pub struct ConfigNotifyMatrix {
263
293
pub reminders_only : bool ,
264
294
}
265
295
296
+ #[ cfg( feature = "notifier-webex" ) ]
266
297
#[ derive( Deserialize ) ]
267
298
pub struct ConfigNotifyWebEx {
268
299
pub endpoint_url : SerdeUrl ,
@@ -273,6 +304,7 @@ pub struct ConfigNotifyWebEx {
273
304
pub reminders_only : bool ,
274
305
}
275
306
307
+ #[ cfg( feature = "notifier-webhook" ) ]
276
308
#[ derive( Deserialize ) ]
277
309
pub struct ConfigNotifyWebHook {
278
310
pub hook_url : SerdeUrl ,
0 commit comments