36 lines
776 B
Rust
36 lines
776 B
Rust
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use models::{RoomId, Uuid};
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct DraftSavedService {
|
|
pub user_id: Uuid,
|
|
pub room: RoomId,
|
|
pub content: String,
|
|
pub saved_at: DateTime<Utc>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct DraftClearedService {
|
|
pub user_id: Uuid,
|
|
pub room: RoomId,
|
|
pub cleared_at: DateTime<Utc>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
|
pub struct DraftSaveClient {
|
|
pub room: RoomId,
|
|
pub content: String,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
|
pub struct DraftLoadClient {
|
|
pub room: RoomId,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
|
pub struct DraftClearClient {
|
|
pub room: RoomId,
|
|
}
|