summaryrefslogtreecommitdiff
path: root/src/models.rs
blob: 7b99ba549b73664bcb388da7557f02e5e3c3813d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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,
}