Message type

This commit is contained in:
2024-06-20 21:08:34 -04:00
Unverified
parent 3a1d236700
commit f958cd36fa

View File

@@ -2,3 +2,19 @@
pub trait RealmChat { pub trait RealmChat {
async fn test(name: String) -> String; async fn test(name: String) -> String;
} }
#[derive(Debug)]
pub struct Message {
guid: String,
text: Option<String>,
attachments: Option<Vec<Attachment>>,
reply_to_guid: Option<String>,
reaction_emoji: Option<String>,
redact: bool,
}
#[derive(Debug)]
pub struct Attachment {
guid: String,
//TODO
}