Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4177a7088b
|
||
|
|
00657fa2c2
|
||
|
|
ad14335a63
|
||
|
|
3527f1aff3 |
@@ -1,16 +1,18 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
pub const MESSAGE_EVENT_RESPONSE_STATUS_INSTANT: &str = "INSTANT";
|
||||||
|
pub const MESSAGE_EVENT_RESPONSE_STATUS_SCHEDULED: &str = "SCHEDULED";
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
pub struct MessageEventResponse {
|
pub struct MessageEventResponse {
|
||||||
pub id: uuid::Uuid,
|
pub id: uuid::Uuid,
|
||||||
pub scheduledMessageEventId: uuid::Uuid,
|
pub scheduled_message_event_id: uuid::Uuid,
|
||||||
// Json field
|
// Json field
|
||||||
pub response: String,
|
pub response: String,
|
||||||
pub userId: uuid::Uuid,
|
pub user_id: uuid::Uuid,
|
||||||
pub contact_id: uuid::Uuid,
|
pub contact_id: uuid::Uuid,
|
||||||
pub message_id: uuid::Uuid,
|
pub message_id: uuid::Uuid,
|
||||||
pub status: string,
|
pub status: String,
|
||||||
#[serde(with = "time::serde::rfc3339::option")]
|
#[serde(with = "time::serde::rfc3339::option")]
|
||||||
pub sent: Option<time::OffsetDateTime>,
|
pub sent: Option<time::OffsetDateTime>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user