diff options
Diffstat (limited to 'src/models.rs')
| -rw-r--r-- | src/models.rs | 24 |
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, +} |
