pub enum MsgUnit {
Show 17 variants
Source {
id: i64,
time: i64,
},
Quote {
group_id: i64,
sender_id: i64,
target_id: i64,
origin: Vec<MsgUnit>,
},
At {
target: i64,
display: String,
},
AtAll,
Face {
face_id: i64,
name: String,
},
Plain {
text: String,
},
Image {
image_id: String,
url: String,
},
FlashImage {
image_id: String,
url: String,
},
Xml {
xml: String,
},
Json {
json: String,
},
App {
content: String,
},
Poke {
name: String,
},
Dice {
value: i8,
},
MusicShare {
kind: String,
title: String,
summary: String,
jump_url: String,
picture_url: String,
music_url: String,
brief: String,
},
Forward {
node_list: Vec<MsgNode>,
},
File {
id: String,
name: String,
size: i64,
},
MiraiCode {
code: String,
},
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MsgUnit
impl<'de> Deserialize<'de> for MsgUnit
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 MsgUnit
impl RefUnwindSafe for MsgUnit
impl Send for MsgUnit
impl Sync for MsgUnit
impl Unpin for MsgUnit
impl UnwindSafe for MsgUnit
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