diff --git a/src/model/mod.rs b/src/model/mod.rs index 68024e148492337f0e30a98004247f4755ad48b6..e4371e0316d93924c7f25de9c036dd5a89759f2a 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -1 +1,2 @@ pub mod product; +pub mod subscriber; \ No newline at end of file diff --git a/src/model/subscriber.rs b/src/model/subscriber.rs new file mode 100644 index 0000000000000000000000000000000000000000..759f458e610540bd7200799575b94147a1c66105 --- /dev/null +++ b/src/model/subscriber.rs @@ -0,0 +1,13 @@ +use rocket::serde::{Deserialize, Serialize}; +use rocket::log; +use rocket::serde::json::to_string; +use rocket::tokio; +use bambangshop::REQWEST_CLIENT; +use crate::model::notification::Notification; + +#[derive(Debug, Clone, Deserialize, Serialize)] +#[serde(crate = "rocket::serde")] +pub struct Subscriber { + pub url: String, + pub name: String, +} \ No newline at end of file