pub struct GitRepositoryInfo {
pub root: PathBuf,
pub branch: Option<String>,
pub remote_url: Option<String>,
pub last_commit: Option<String>,
pub has_changes: bool,
}
Expand description
Git repository information
Fields§
§root: PathBuf
Repository root path
branch: Option<String>
Current branch
remote_url: Option<String>
Remote URL
last_commit: Option<String>
Last commit hash
has_changes: bool
Whether repository has uncommitted changes
Trait Implementations§
Source§impl Clone for GitRepositoryInfo
impl Clone for GitRepositoryInfo
Source§fn clone(&self) -> GitRepositoryInfo
fn clone(&self) -> GitRepositoryInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 GitRepositoryInfo
impl Debug for GitRepositoryInfo
Source§impl<'de> Deserialize<'de> for GitRepositoryInfo
impl<'de> Deserialize<'de> for GitRepositoryInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitRepositoryInfo
impl RefUnwindSafe for GitRepositoryInfo
impl Send for GitRepositoryInfo
impl Sync for GitRepositoryInfo
impl Unpin for GitRepositoryInfo
impl UnwindSafe for GitRepositoryInfo
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