pushx 0.1.0

A simple unified push library for DingTalk, extendable to Feishu, etc.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum PushError {
    #[error("HTTP error: {0}")]
    HttpError(#[from] reqwest::Error),

    #[error("Config error: {0}")]
    ConfigError(String),

    #[error("Response error: {0}")]
    UnexpectedResponse(String),

    #[error("Others error: {0}")]
    Other(String),
}