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(String)
Text message. Should not be used to reply to messages!
Emote(String)
Emote. Represents an action.
Notice(String)
Notice. Should be used for automatic replies. Should not be replied to!
Image
Image file. The URL should be created by uploading to the homesever.
Fields of Image
body: String | |
url: String |
File
File. The URL should be created by uploading to the homesever.
Fields of File
body: String | |
url: String |
Location
Location. geo_uri
should be a Geo URI.
E. g. geo:37.786971,-122.399677
.
Fields of Location
body: String | |
geo_uri: String |
Video
Video file. The URL should be created by uploading to the homesever.
Fields of Video
body: String | |
url: String |
Audio
Audio file. The URL should be created by uploading to the homesever.
Fields of Audio
body: String | |
url: String |