Message type

This commit is contained in:
joshuafhiggins committed 2024-06-20 21:08:34 -04:00
1 parent 3a1d236700
commit f958cd36fa
1 file changed
+16
+16
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
}