From f958cd36fa70574339970b44b4cd327e161164a7 Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Thu, 20 Jun 2024 21:08:34 -0400 Subject: [PATCH] Message type --- server/src/types.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/server/src/types.rs b/server/src/types.rs index 17392c9..ebd7757 100644 --- a/server/src/types.rs +++ b/server/src/types.rs @@ -1,4 +1,20 @@ #[tarpc::service] pub trait RealmChat { async fn test(name: String) -> String; +} + +#[derive(Debug)] +pub struct Message { + guid: String, + text: Option, + attachments: Option>, + reply_to_guid: Option, + reaction_emoji: Option, + redact: bool, +} + +#[derive(Debug)] +pub struct Attachment { + guid: String, + //TODO } \ No newline at end of file