pub enum MsgContent {
Text {
content: String,
},
File {
download_code: String,
file_name: String,
},
Picture {
download_code: String,
picture_download_code: String,
},
RichText {
rich_text: Vec<RichText>,
},
Audio {
duration: u32,
download_code: String,
recognition: String,
},
Video {
duration: u32,
download_code: String,
video_type: String,
},
UnknownMsgType {
unknown_msg_type: String,
},
}
Expand description
Enumeration types for all received messages
Please refer to the official document for the definition of each field
Variants§
Trait Implementations§
Source§impl Debug for MsgContent
impl Debug for MsgContent
Source§impl<'de> Deserialize<'de> for MsgContent
impl<'de> Deserialize<'de> for MsgContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MsgContent
impl RefUnwindSafe for MsgContent
impl Send for MsgContent
impl Sync for MsgContent
impl Unpin for MsgContent
impl UnwindSafe for MsgContent
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