Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bambangshop-receiver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ferdinand Bonfilio Simamora
bambangshop-receiver
Commits
5b788681
Commit
5b788681
authored
1 month ago
by
Ferdinand57
Browse files
Options
Downloads
Patches
Plain Diff
Create SubscriberRequest model struct.
parent
bfb0d975
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
src/model/mod.rs
+1
-0
1 addition, 0 deletions
src/model/mod.rs
src/model/subscriber.rs
+8
-0
8 additions, 0 deletions
src/model/subscriber.rs
with
10 additions
and
1 deletion
README.md
+
1
−
1
View file @
5b788681
...
@@ -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.`
...
...
This diff is collapsed.
Click to expand it.
src/model/mod.rs
+
1
−
0
View file @
5b788681
pub
mod
subscriber
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/model/subscriber.rs
0 → 100644
+
8
−
0
View file @
5b788681
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment