cloudiful-notifier 0.2.1

Async notification delivery library for ntfy, generic webhooks, DingTalk robots, and SMTP email.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::collections::BTreeMap;

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct WebhookChannel {
    pub url: String,
    pub bearer_token: Option<String>,
    #[serde(default)]
    pub extra_headers: BTreeMap<String, String>,
}