pub struct RepoStore { /* private fields */ }Expand description
Global repository store.
Implementations§
Source§impl RepoStore
impl RepoStore
Sourcepub fn create(&self, name: &str, owner: &str) -> Result<Arc<Repository>>
pub fn create(&self, name: &str, owner: &str) -> Result<Arc<Repository>>
Creates a new repository.
Sourcepub fn get(&self, owner: &str, name: &str) -> Result<Arc<Repository>>
pub fn get(&self, owner: &str, name: &str) -> Result<Arc<Repository>>
Gets a repository by owner and name.
Sourcepub fn list(&self) -> Vec<Arc<Repository>>
pub fn list(&self) -> Vec<Arc<Repository>>
Lists all repositories.
Sourcepub fn list_by_owner(&self, owner: &str) -> Vec<Arc<Repository>>
pub fn list_by_owner(&self, owner: &str) -> Vec<Arc<Repository>>
Lists repositories by owner.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RepoStore
impl !RefUnwindSafe for RepoStore
impl Send for RepoStore
impl Sync for RepoStore
impl Unpin for RepoStore
impl !UnwindSafe for RepoStore
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