[][src]Enum mirai::message::single::SingleMessage

pub enum SingleMessage {
    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

Source

Fields of Source

id: MessageIDtime: TimeStamp
Plain

Fields of Plain

text: String
Quote

Fields of Quote

id: MessageIDgroup_id: Targetsender_id: Targettarget_id: Targetorigin: MessageChain
At

Fields of At

target: Targetdisplay: String
AtAll
Face

Fields of Face

face_id: Option<i32>name: Option<String>
Image

Fields of Image

image_id: Option<String>url: Option<String>path: Option<String>
FlashImage

Fields of FlashImage

image_id: Option<String>url: Option<String>path: Option<String>
Xml

Fields of Xml

xml: String
Json

Fields of Json

json: String
App

Fields of App

content: String
Poke

Fields of Poke

name: String
Unsupported

Trait Implementations

impl Clone for SingleMessage[src]

impl Debug for SingleMessage[src]

impl<'de> Deserialize<'de> for SingleMessage[src]

impl<'_> From<&'_ str> for SingleMessage[src]

impl From<String> for SingleMessage[src]

impl Serialize for SingleMessage[src]

impl ToString for SingleMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.