Compare commits

...
Author SHA1 Message Date
phoenix d99aa2587a Adding event module
Rust Build / Check (pull_request) Successful in 41s
Rust Build / Rustfmt (pull_request) Successful in 32s
Release Tagging / release (pull_request) Successful in 40s
Rust Build / Test Suite (pull_request) Successful in 40s
Rust Build / build (pull_request) Successful in 31s
Rust Build / Clippy (pull_request) Successful in 38s
2026-05-30 15:35:35 -04:00
phoenix e965cdeed9 Adding message module (#12)
Rust Build / Check (push) Successful in 41s
Release Tagging / release (push) Successful in 1m18s
Rust Build / Rustfmt (push) Successful in 26s
Rust Build / Test Suite (push) Successful in 1m5s
Rust Build / Clippy (push) Successful in 27s
Rust Build / build (push) Successful in 33s
Reviewed-on: phoenix/textsender-models#12
2026-05-30 15:15:15 -04:00
3 changed files with 25 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
pub mod config;
pub mod contact;
pub mod message;
pub mod token;
pub mod user;
+16
View File
@@ -0,0 +1,16 @@
use serde::{Deserialize, Serialize};
pub struct MessageEventResponse {
pub id: uuid::Uuid,
pub scheduledMessageEventId: uuid::Uuid,
// Json field
pub response: String,
pub userId: uuid::Uuid,
pub contact_id: uuid::Uuid,
pub message_id: uuid::Uuid,
pub status: string,
#[serde(with = "time::serde::rfc3339::option")]
pub sent: Option<time::OffsetDateTime>,
}
+8
View File
@@ -0,0 +1,8 @@
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Message {
pub id: uuid::Uuid,
pub content: String,
pub user_id: uuid::Uuid,
}