Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 5b788681 authored by Ferdinand57's avatar Ferdinand57
Browse files

Create SubscriberRequest model struct.

parent bfb0d975
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ You can install Postman via this website: https://www.postman.com/downloads/ ...@@ -59,7 +59,7 @@ You can install Postman via this website: https://www.postman.com/downloads/
- Open another new terminal, edit `ROCKET_PORT` in `.env` to `8003`, then execute `cargo run`. - Open another new terminal, edit `ROCKET_PORT` in `.env` to `8003`, then execute `cargo run`.
## Mandatory Checklists (Subscriber) ## Mandatory Checklists (Subscriber)
- [ ] Clone https://gitlab.com/ichlaffterlalu/bambangshop-receiver to a new repository. - [v] Clone https://gitlab.com/ichlaffterlalu/bambangshop-receiver to a new repository.
- **STAGE 1: Implement models and repositories** - **STAGE 1: Implement models and repositories**
- [ ] Commit: `Create Notification model struct.` - [ ] Commit: `Create Notification model struct.`
- [ ] Commit: `Create SubscriberRequest model struct.` - [ ] Commit: `Create SubscriberRequest model struct.`
......
pub mod subscriber;
\ No newline at end of file
use rocket::serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(crate = "rocket::serde")]
pub struct SubscriberRequest {
pub url: String,
pub name: String,
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment