Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
161f94fd41
|
||
|
|
3980acf79e
|
||
|
|
e126e4bc06
|
||
|
|
d99aa2587a
|
||
|
|
e965cdeed9 |
@@ -1,4 +1,5 @@
|
|||||||
pub mod config;
|
pub mod config;
|
||||||
pub mod contact;
|
pub mod contact;
|
||||||
|
pub mod message;
|
||||||
pub mod token;
|
pub mod token;
|
||||||
pub mod user;
|
pub mod user;
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
|
pub struct MessageEventResponse {
|
||||||
|
pub id: uuid::Uuid,
|
||||||
|
pub scheduled_message_event_id: uuid::Uuid,
|
||||||
|
// Json field
|
||||||
|
pub response: String,
|
||||||
|
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>,
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
pub mod event;
|
||||||
|
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
|
pub struct Message {
|
||||||
|
pub id: uuid::Uuid,
|
||||||
|
pub content: String,
|
||||||
|
pub user_id: uuid::Uuid,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user