diff --git a/src/model/mod.rs b/src/model/mod.rs index e4371e0316d93924c7f25de9c036dd5a89759f2a..0e235e498cbb15cdb3da96928e7fea0354c24124 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -1,2 +1,3 @@ pub mod product; -pub mod subscriber; \ No newline at end of file +pub mod subscriber; +pub mod notification; \ No newline at end of file diff --git a/src/model/notification.rs b/src/model/notification.rs new file mode 100644 index 0000000000000000000000000000000000000000..7ef9532e0ac45c71ec6f7851b2cef95f8208ab24 --- /dev/null +++ b/src/model/notification.rs @@ -0,0 +1,11 @@ +use rocket::serde::{Deserialize, Serialize}; + +#[derive(Debug, Clone, Deserialize, Serialize)] +#[serde(crate = "rocket::serde")] +pub struct Notification { + pub product_title: String, + pub product_type: String, + pub product_url: String, + pub subscriber_name: String, + pub status: String, +}