pub struct GitRepository { /* private fields */ }Expand description
High-level git repository abstraction
Implementations§
Source§impl GitRepository
impl GitRepository
Sourcepub fn info(&self) -> Result<RepositoryInfo>
pub fn info(&self) -> Result<RepositoryInfo>
Get repository information
Sourcepub fn health(&self) -> Result<HealthStatus>
pub fn health(&self) -> Result<HealthStatus>
Get repository health status
Sourcepub fn validate_for_operation(&self, operation: &str) -> Result<()>
pub fn validate_for_operation(&self, operation: &str) -> Result<()>
Validate repository state for operations
Auto Trait Implementations§
impl Freeze for GitRepository
impl RefUnwindSafe for GitRepository
impl Send for GitRepository
impl Sync for GitRepository
impl Unpin 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> 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