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
use crate::{error::PushError, message::PushMessage};
use async_trait::async_trait;

#[async_trait]
pub trait PushClient: Send + Sync {
    async fn send(&self, message: PushMessage) -> Result<(), PushError>;

    fn name(&self) -> &'static str;
}