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