Release Tagging / release (push) Successful in 48s
Rust Build / Rustfmt (push) Successful in 35s
Rust Build / Test Suite (push) Successful in 1m26s
Rust Build / Clippy (push) Successful in 1m27s
Rust Build / build (push) Successful in 1m29s
Rust Build / Check (push) Successful in 1m12s
textsender_models PR / Rustfmt (pull_request) Successful in 54s
textsender_models PR / Check (pull_request) Successful in 1m20s
Release Tagging / release (pull_request) Successful in 37s
textsender_models PR / Clippy (pull_request) Successful in 1m5s
Reviewed-on: phoenix/textsender_models#29
22 lines
790 B
Rust
22 lines
790 B
Rust
/// 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(
|
|
Clone, Debug, Default, serde::Deserialize, serde::Serialize, sqlx::FromRow, utoipa::ToSchema,
|
|
)]
|
|
pub struct MessageEventResponse {
|
|
pub 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,
|
|
pub contact_id: uuid::Uuid,
|
|
pub message_id: uuid::Uuid,
|
|
pub status: String,
|
|
#[serde(with = "time::serde::rfc3339::option")]
|
|
pub sent: Option<time::OffsetDateTime>,
|
|
}
|