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

This commit is contained in:
2026-06-20 16:33:13 -04:00
parent 384dd41690
commit 7e5bc016b1
+4 -1
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,7 +8,8 @@ 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: serde_json::Value,
pub user_id: uuid::Uuid,