20 lines
421 B
Rust
20 lines
421 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::message_ast::MessageContent;
|
|
|
|
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq)]
|
|
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,
|
|
}
|