saving and loading library implemented
This commit is contained in:
14
src/structs.rs
Normal file
14
src/structs.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Default, Deserialize, Serialize, Debug)]
|
||||
pub struct Library {
|
||||
pub current_shelf: u8,
|
||||
pub shelves: Vec<Shelf>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize, Debug)]
|
||||
pub struct Shelf {
|
||||
pub id: u8,
|
||||
pub name: String,
|
||||
pub content: Vec<String>,
|
||||
}
|
||||
Reference in New Issue
Block a user