diff options
Diffstat (limited to 'server/src/library.rs')
-rw-r--r-- | server/src/library.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/server/src/library.rs b/server/src/library.rs index ffd8b4a..8606a6e 100644 --- a/server/src/library.rs +++ b/server/src/library.rs @@ -16,33 +16,6 @@ use std::{ use crate::{routes::ui::node::AssetRole, CONF}; -pub struct Library { - pub root: Arc<Node>, - pub root_path: PathBuf, -} - -#[derive(Debug, Clone)] -pub enum Node { - Directory(Arc<Directory>), - Item(Arc<Item>), -} - -#[derive(Debug, Clone)] -pub struct Directory { - pub lib_path: PathBuf, - pub identifier: String, - pub info: DirectoryInfo, - pub children: Vec<Arc<Node>>, -} - -#[derive(Debug, Clone)] -pub struct Item { - pub fs_path: PathBuf, - pub lib_path: PathBuf, - pub identifier: String, - pub info: ItemInfo, -} - impl Library { pub fn open(path: &Path) -> anyhow::Result<Self> { Ok(Self { |