move DingTalkType to mod msg
This commit is contained in:
13
src/msg.rs
13
src/msg.rs
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user