pub struct GitRepository { /* private fields */ }Expand description
File persistence with a thin Git-commit layer.
Implementations§
Trait Implementations§
Source§impl BacklogItemRepository for GitRepository
impl BacklogItemRepository for GitRepository
Source§async fn save(&self, item: &BacklogItem) -> Result<()>
async fn save(&self, item: &BacklogItem) -> Result<()>
Save a backlog item, replacing any existing item with the same ID.
Source§async fn load(&self, id: &ItemId) -> Result<BacklogItem>
async fn load(&self, id: &ItemId) -> Result<BacklogItem>
Load a backlog item by ID. Return
crate::error::Error::NotFound when it does not exist.Source§async fn list(&self) -> Result<Vec<BacklogItem>>
async fn list(&self) -> Result<Vec<BacklogItem>>
Return all backlog items in lexicographic rank order, using the ID as a tie-breaker. Read more
Source§async fn delete(&self, id: &ItemId) -> Result<()>
async fn delete(&self, id: &ItemId) -> Result<()>
Delete a backlog item by ID. Return
crate::error::Error::NotFound when it does not exist.Source§impl Clone for GitRepository
impl Clone for GitRepository
Source§fn clone(&self) -> GitRepository
fn clone(&self) -> GitRepository
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitRepository
impl Debug for GitRepository
Source§impl SprintRepository for GitRepository
impl SprintRepository for GitRepository
Source§async fn save(&self, sprint: &Sprint) -> Result<()>
async fn save(&self, sprint: &Sprint) -> Result<()>
Save a sprint, replacing any existing sprint with the same ID.
Source§async fn load(&self, id: &SprintId) -> Result<Sprint>
async fn load(&self, id: &SprintId) -> Result<Sprint>
Load a sprint by ID. Return
crate::error::Error::SprintNotFound when it does not exist.Auto Trait Implementations§
impl Freeze for GitRepository
impl RefUnwindSafe for GitRepository
impl Send for GitRepository
impl Sync for GitRepository
impl Unpin for GitRepository
impl UnsafeUnpin for GitRepository
impl UnwindSafe for GitRepository
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more