Enum dementia::Message [] [src]

pub enum Message {
    Text(String),
    Emote(String),
    Notice(String),
    Image {
        body: String,
        url: String,
    },
    File {
        body: String,
        url: String,
    },
    Location {
        body: String,
        geo_uri: String,
    },
    Video {
        body: String,
        url: String,
    },
    Audio {
        body: String,
        url: String,
    },
}

A message received from or to be sent to a room

Variants

Text message. Should not be used to reply to messages!

Emote. Represents an action.

Notice. Should be used for automatic replies. Should not be replied to!

Image file. The URL should be created by uploading to the homesever.

Fields of Image

File. The URL should be created by uploading to the homesever.

Fields of File

Location. geo_uri should be a Geo URI. E. g. geo:37.786971,-122.399677.

Fields of Location

Video file. The URL should be created by uploading to the homesever.

Fields of Video

Audio file. The URL should be created by uploading to the homesever.

Fields of Audio

Trait Implementations

Auto Trait Implementations

impl Send for Message

impl Sync for Message