pub struct RepositoryManager { /* private fields */ }Expand description
A simple repository visitor. Can perform simple operations on the repository.
Implementations§
Source§impl RepositoryManager
impl RepositoryManager
pub fn new<P>(root: P) -> RepoResult<Self>
pub fn name(&self) -> &str
pub fn edition(&self) -> &str
Sourcepub fn all_album_paths(&self) -> RepoResult<Vec<PathBuf>>
pub fn all_album_paths(&self) -> RepoResult<Vec<PathBuf>>
Get all album paths. TODO: use iterator
Sourcepub fn album_paths(&self, catalog: &str) -> RepoResult<Vec<PathBuf>>
pub fn album_paths(&self, catalog: &str) -> RepoResult<Vec<PathBuf>>
Get album paths with given catalog.
Sourcepub fn load_albums(&self, catalog: &str) -> RepoResult<Vec<Album>>
pub fn load_albums(&self, catalog: &str) -> RepoResult<Vec<Album>>
Load album(s) with given catalog.
Sourcepub fn add_album(&self, album: Album, allow_duplicate: bool) -> RepoResult<()>
pub fn add_album(&self, album: Album, allow_duplicate: bool) -> RepoResult<()>
Add new album to the repository.
pub fn into_owned_manager(self) -> RepoResult<OwnedRepositoryManager>
pub fn root(&self) -> &Path
Auto Trait Implementations§
impl Freeze for RepositoryManager
impl RefUnwindSafe for RepositoryManager
impl Send for RepositoryManager
impl Sync for RepositoryManager
impl Unpin for RepositoryManager
impl UnwindSafe for RepositoryManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more