2021-09-12 02:59:13 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
use crate::message_ast::MessageContent;
|
|
|
|
|
2021-09-12 09:54:41 +00:00
|
|
|
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq)]
|
2021-09-12 02:59:13 +00:00
|
|
|
pub enum MessageReference {
|
|
|
|
Discord(u64, u64),
|
|
|
|
Matrix(String, String),
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct MessageAuthor {
|
|
|
|
pub display_name: String,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct SentMessage {
|
|
|
|
pub source: MessageReference,
|
|
|
|
pub content: MessageContent,
|
|
|
|
pub author: MessageAuthor,
|
|
|
|
}
|