Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Advprog BambangShop
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
Pascal Hafidz Fajri
Advprog BambangShop
Commits
067d627b
Commit
067d627b
authored
2 weeks ago
by
Scallss
Browse files
Options
Downloads
Patches
Plain Diff
Create Notification model struct.
parent
2d34de3f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/model/mod.rs
+1
-0
1 addition, 0 deletions
src/model/mod.rs
src/model/notification.rs
+11
-0
11 additions, 0 deletions
src/model/notification.rs
with
12 additions
and
0 deletions
src/model/mod.rs
+
1
−
0
View file @
067d627b
pub
mod
product
;
pub
mod
subscriber
;
pub
mod
notification
;
This diff is collapsed.
Click to expand it.
src/model/notification.rs
0 → 100644
+
11
−
0
View file @
067d627b
use
rocket
::
serde
::{
Deserialize
,
Serialize
};
#[derive(Debug,
Clone,
Deserialize,
Serialize)]
#[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
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