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
30 lines
943 B
Rust
30 lines
943 B
Rust
#[derive(
|
|
Clone, Debug, Default, serde::Deserialize, serde::Serialize, sqlx::FromRow, utoipa::ToSchema,
|
|
)]
|
|
pub struct ScheduledMessageEvent {
|
|
pub id: uuid::Uuid,
|
|
pub contact_id: uuid::Uuid,
|
|
pub message_id: uuid::Uuid,
|
|
pub scheduled_message_id: uuid::Uuid,
|
|
#[serde(with = "time::serde::rfc3339::option")]
|
|
pub created: Option<time::OffsetDateTime>,
|
|
}
|
|
|
|
#[derive(
|
|
Clone, Debug, Default, serde::Deserialize, serde::Serialize, sqlx::FromRow, utoipa::ToSchema,
|
|
)]
|
|
pub struct ScheduledMessage {
|
|
pub id: uuid::Uuid,
|
|
#[serde(with = "time::serde::rfc3339::option")]
|
|
pub scheduled: Option<time::OffsetDateTime>,
|
|
#[serde(with = "time::serde::rfc3339::option")]
|
|
pub created: Option<time::OffsetDateTime>,
|
|
pub status: String,
|
|
pub user_id: uuid::Uuid,
|
|
}
|
|
|
|
pub const READY: &str = "READY";
|
|
pub const PENDING: &str = "PENDING";
|
|
pub const PROCESSING: &str = "PROCESSING";
|
|
pub const DONE: &str = "DONE";
|