pub enum MessageTemplate {
Show 13 variants
SampleText {
content: String,
},
SampleMarkdown {
title: String,
text: String,
},
SampleImageMsg {
photo_url: String,
},
SampleLink {
text: String,
title: String,
pic_url: String,
message_url: String,
},
SampleActionCard {
title: String,
text: String,
single_title: String,
single_url: String,
},
SampleActionCard2 {
title: String,
text: String,
action_title_1: String,
action_url_1: String,
action_title_2: String,
action_url_2: String,
},
SampleActionCard3 {
title: String,
text: String,
action_title_1: String,
action_url_1: String,
action_title_2: String,
action_url_2: String,
action_title_3: String,
action_url_3: String,
},
SampleActionCard4 {
title: String,
text: String,
action_title_1: String,
action_url_1: String,
action_title_2: String,
action_url_2: String,
action_title_3: String,
action_url_3: String,
action_title_4: String,
action_url_4: String,
},
SampleActionCard5 {
title: String,
text: String,
action_title_1: String,
action_url_1: String,
action_title_2: String,
action_url_2: String,
action_title_3: String,
action_url_3: String,
action_title_4: String,
action_url_4: String,
action_title_5: String,
action_url_5: String,
},
SampleActionCard6 {
title: String,
text: String,
button_title_1: String,
button_url_1: String,
button_title_2: String,
button_url_2: String,
},
SampleAudio {
media_id: String,
duration: String,
},
SampleFile {
media_id: String,
file_name: String,
file_type: String,
},
SampleVideo {
duration: String,
video_media_id: String,
video_type: String,
pic_media_id: String,
},
}
Expand description
Message enum to be sent to DingTalk server
Please refer to the official document for the definition of each field
Variants§
SampleText
SampleMarkdown
SampleImageMsg
SampleLink
SampleActionCard
SampleActionCard2
Fields
SampleActionCard3
Fields
SampleActionCard4
Fields
SampleActionCard5
Fields
SampleActionCard6
SampleAudio
SampleFile
SampleVideo
Trait Implementations§
Source§impl Clone for MessageTemplate
impl Clone for MessageTemplate
Source§fn clone(&self) -> MessageTemplate
fn clone(&self) -> MessageTemplate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Display for MessageTemplate
impl Display for MessageTemplate
Source§impl Serialize for MessageTemplate
impl Serialize for MessageTemplate
Auto Trait Implementations§
impl Freeze for MessageTemplate
impl RefUnwindSafe for MessageTemplate
impl Send for MessageTemplate
impl Sync for MessageTemplate
impl Unpin for MessageTemplate
impl UnwindSafe for MessageTemplate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more