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 { Ok(Self { path: path.to_string(), tree: , }) } }