pub struct OwnedRepositoryManager {
pub repo: RepositoryManager,
/* private fields */
}Expand description
A repository manager which own full copy of a repo.
This is helpful when you need to perform a full-repo operation, such as ring check on tags, full-repo validation, etc.
Fields§
§repo: RepositoryManagerImplementations§
Source§impl OwnedRepositoryManager
impl OwnedRepositoryManager
pub fn new(repo: RepositoryManager) -> RepoResult<Self>
pub fn album(&self, album_id: &Uuid) -> Option<&Album>
pub fn album_path(&self, album_id: &Uuid) -> Option<&Path>
pub fn albums(&self) -> &HashMap<Uuid, Album>
pub fn albums_iter(&self) -> impl Iterator<Item = &Album>
pub fn tag(&self, tag: &TagRef<'_>) -> Option<&Tag>
pub fn tag_path<'a>(&'a self, tag: &'a TagRef<'_>) -> Option<&'a PathBuf>
pub fn albums_tagged_by<'me, 'tag>(
&'me self,
tag: &'me TagRef<'tag>,
) -> Option<&'me Vec<Uuid>>where
'tag: 'me,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedRepositoryManager
impl RefUnwindSafe for OwnedRepositoryManager
impl Send for OwnedRepositoryManager
impl Sync for OwnedRepositoryManager
impl Unpin for OwnedRepositoryManager
impl UnwindSafe for OwnedRepositoryManager
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