summaryrefslogtreecommitdiff
path: root/src/models.rs
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-09-15 14:50:08 +0100
committerNaz <ndpm13@ch-naseem.com>2025-09-15 15:08:15 +0100
commit8b5a71dd3a490718540a7e9d48da2a220256a628 (patch)
treeb1e029fad2a636dabcf053192ded8542e530b3d1 /src/models.rs
parentc53617755ea9f98c8c8e36901db90e19e827a483 (diff)
✨feat: dirty commit bringing basic functionality
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs
new file mode 100644
index 0000000..7b99ba5
--- /dev/null
+++ b/src/models.rs
@@ -0,0 +1,24 @@
+use serde::Deserialize;
+
+#[derive(Deserialize)]
+pub struct Bookmarks {
+ pub sections: Vec<Section>,
+}
+
+#[derive(Deserialize)]
+pub struct Section {
+ pub title: String,
+ pub cards: Vec<Card>,
+}
+
+#[derive(Deserialize)]
+pub struct Card {
+ pub title: String,
+ pub links: Vec<Link>,
+}
+
+#[derive(Deserialize)]
+pub struct Link {
+ pub title: String,
+ pub url: String,
+}