diff --git a/src/model/mod.rs b/src/model/mod.rs index 7cf6d5687eea2b47fb0830e480a0e78cbecceeb3..89a55b82f0bfc45cb31d62493a1b7dbfd7e632f1 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -1,2 +1,3 @@ pub mod product; pub mod subscriber; +pub mod notification; diff --git a/src/model/notification.rs b/src/model/notification.rs new file mode 100644 index 0000000000000000000000000000000000000000..bd0d9373e87c1d3260213fc1b0d9830ed25accd5 --- /dev/null +++ b/src/model/notification.rs @@ -0,0 +1,12 @@ +use rocket::serde::{Deserialize, Serialize}; + +#[derive(Debug,Clone, Serialize, Deserialize)] +#[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 +} \ No newline at end of file