From 2d34de3f33299748adfac85b631a21c5d1f4cad7 Mon Sep 17 00:00:00 2001 From: Scallss <pascalhafidz2005@gmail.com> Date: Fri, 28 Mar 2025 15:05:15 +0700 Subject: [PATCH] Create Subscriber model struct. --- src/model/mod.rs | 1 + src/model/subscriber.rs | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/model/subscriber.rs diff --git a/src/model/mod.rs b/src/model/mod.rs index 68024e1..7cf6d56 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -1 +1,2 @@ pub mod product; +pub mod subscriber; diff --git a/src/model/subscriber.rs b/src/model/subscriber.rs new file mode 100644 index 0000000..dfdc8c5 --- /dev/null +++ b/src/model/subscriber.rs @@ -0,0 +1,13 @@ +use rocket::serde::{Deserialize, Serialize}; +use rocket::serde::json::to_string; +use rocket::log; +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 -- GitLab