move DingTalkType to mod msg

This commit is contained in:
2020-04-25 23:30:36 +08:00
parent 109c85379b
commit 5b5a23ab0b
2 changed files with 14 additions and 12 deletions

View File

@@ -1,6 +1,19 @@
use serde::{Serialize, Deserialize};
/// Send Dingtalk or WeChatWork message
#[derive(Clone, Copy, Debug)]
pub enum DingTalkType {
DingTalk,
WeChatWork,
}
impl Default for DingTalkType {
fn default() -> Self { DingTalkType::DingTalk }
}
/// DingTalk message type
/// * Text - text message
/// * Markdown - markdown message