pub enum SingleMessage {
Show 13 variants
Source {
id: MessageID,
time: TimeStamp,
},
Plain {
text: String,
},
Quote {
id: MessageID,
group_id: Target,
sender_id: Target,
target_id: Target,
origin: MessageChain,
},
At {
target: Target,
display: String,
},
AtAll,
Face {
face_id: Option<i32>,
name: Option<String>,
},
Image {
image_id: Option<String>,
url: Option<String>,
path: Option<String>,
},
FlashImage {
image_id: Option<String>,
url: Option<String>,
path: Option<String>,
},
Xml {
xml: String,
},
Json {
json: String,
},
App {
content: String,
},
Poke {
name: String,
},
Unsupported,
}Variants§
Trait Implementations§
Source§impl Clone for SingleMessage
impl Clone for SingleMessage
Source§fn clone(&self) -> SingleMessage
fn clone(&self) -> SingleMessage
Returns a duplicate 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 Debug for SingleMessage
impl Debug for SingleMessage
Source§impl<'de> Deserialize<'de> for SingleMessage
impl<'de> Deserialize<'de> for SingleMessage
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
Source§impl From<&str> for SingleMessage
impl From<&str> for SingleMessage
Source§impl From<String> for SingleMessage
impl From<String> for SingleMessage
Source§impl Serialize for SingleMessage
impl Serialize for SingleMessage
Auto Trait Implementations§
impl Freeze for SingleMessage
impl RefUnwindSafe for SingleMessage
impl Send for SingleMessage
impl Sync for SingleMessage
impl Unpin for SingleMessage
impl UnsafeUnpin for SingleMessage
impl UnwindSafe for SingleMessage
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