diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-09 22:53:14 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-09 22:53:14 +0100 |
commit | c64d3cd8cda389909b4b3dbdf00c0710e2c9a490 (patch) | |
tree | c0c5f8a077d4ca0c627f3f50b5f6690b86909681 /src/library.rs | |
parent | 1599b61d22810e250f471b3b561660205297e07c (diff) | |
download | jellything-c64d3cd8cda389909b4b3dbdf00c0710e2c9a490.tar jellything-c64d3cd8cda389909b4b3dbdf00c0710e2c9a490.tar.bz2 jellything-c64d3cd8cda389909b4b3dbdf00c0710e2c9a490.tar.zst |
a
Diffstat (limited to 'src/library.rs')
-rw-r--r-- | src/library.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/library.rs b/src/library.rs new file mode 100644 index 0000000..576ed77 --- /dev/null +++ b/src/library.rs @@ -0,0 +1,23 @@ +use anyhow::Ok; + +pub struct Library { + path: String, + tree: LibNode, +} + +pub enum LibNode { + Directory(LibDirectory), + Item(LibItem), +} + +pub struct LibDirectory {} +pub struct LibItem {} + +impl Library { + pub fn open(path: &str) -> anyhow::Result<Self> { + Ok(Self { + path: path.to_string(), + tree: , + }) + } +} |