Private
Public Access
1
0

client: Started working on ability to sync messages after last known message

This commit is contained in:
2025-04-28 15:17:58 -07:00
parent 6375284d9e
commit 9c245a5b52
8 changed files with 55 additions and 11 deletions

View File

@@ -2,6 +2,10 @@ use serde::Deserialize;
use time::OffsetDateTime;
use uuid::Uuid;
use super::Identifiable;
pub type MessageID = <Message as Identifiable>::ID;
#[derive(Debug, Clone, Deserialize)]
pub struct Message {
pub guid: String,
@@ -22,6 +26,14 @@ impl Message {
}
}
impl Identifiable for Message {
type ID = String;
fn id(&self) -> &Self::ID {
&self.guid
}
}
#[derive(Default)]
pub struct MessageBuilder {
guid: Option<String>,