Compare commits

..
Author SHA1 Message Date
phoenix 7e5bc016b1 Making field optional
textsender_models PR / Rustfmt (pull_request) Successful in 54s
textsender_models PR / Clippy (pull_request) Successful in 1m13s
Release Tagging / release (pull_request) Successful in 27s
textsender_models PR / Check (pull_request) Successful in 1m54s
2026-06-20 16:33:13 -04:00
phoenix 384dd41690 bump: textsender_models
textsender_models PR / Check (pull_request) Successful in 1m32s
textsender_models PR / Clippy (pull_request) Successful in 1m31s
textsender_models PR / Rustfmt (pull_request) Successful in 47s
Release Tagging / release (pull_request) Successful in 33s
2026-06-20 12:55:02 -04:00
phoenix f246676203 Changed type of response field to serde_json::Value 2026-06-20 12:54:55 -04:00
phoenix 47e6c85fc7 bump: textsender_models
textsender_models PR / Rustfmt (pull_request) Successful in 1m4s
textsender_models PR / Check (pull_request) Successful in 1m25s
Release Tagging / release (pull_request) Successful in 33s
textsender_models PR / Clippy (pull_request) Successful in 1m8s
2026-06-18 14:27:43 -04:00
phoenix 82370ad63a Added sqlx crate 2026-06-18 14:27:18 -04:00
3 changed files with 1490 additions and 5 deletions
Generated
+1483 -2
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "textsender_models"
version = "0.4.1"
version = "0.4.3"
edition = "2024"
rust-version = "1.96"
description = "Models used for the textsender project"
@@ -9,6 +9,7 @@ description = "Models used for the textsender project"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = { version = "1.0.150" }
time = { version = "0.3.49", features = ["formatting", "macros", "parsing", "serde"] }
sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio-native-tls", "time", "uuid"] }
uuid = { version = "1.23.3", features = ["v4", "serde"] }
dotenvy = { version = "0.15.7" }
const_format = { version = "0.2.36" }
+5 -2
View File
@@ -1,4 +1,6 @@
/// Message status - Instant
pub const MESSAGE_EVENT_RESPONSE_STATUS_INSTANT: &str = "INSTANT";
/// Message status - Scheduled
pub const MESSAGE_EVENT_RESPONSE_STATUS_SCHEDULED: &str = "SCHEDULED";
#[derive(
@@ -6,9 +8,10 @@ pub const MESSAGE_EVENT_RESPONSE_STATUS_SCHEDULED: &str = "SCHEDULED";
)]
pub struct MessageEventResponse {
pub id: uuid::Uuid,
pub scheduled_message_event_id: uuid::Uuid,
#[serde(skip_serializing_if = "crate::init::is_uuid_nil")]
pub scheduled_message_event_id: Option<uuid::Uuid>,
/// Stores a json response of the sent message
pub response: String,
pub response: serde_json::Value,
pub user_id: uuid::Uuid,
pub contact_id: uuid::Uuid,
pub message_id: uuid::Uuid,