pub struct BranchInfo {
pub name: String,
pub is_head: bool,
pub commit_id: String,
pub is_remote: bool,
}Expand description
Information about a git branch.
Fields§
§name: StringBranch name (e.g., “main”, “feature/foo”, “origin/main”).
is_head: boolWhether this branch is the current HEAD.
commit_id: StringSHA hash of the commit this branch points to.
is_remote: boolWhether this is a remote-tracking branch.
Trait Implementations§
Source§impl Clone for BranchInfo
impl Clone for BranchInfo
Source§fn clone(&self) -> BranchInfo
fn clone(&self) -> BranchInfo
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 BranchInfo
impl Debug for BranchInfo
Source§impl<'de> Deserialize<'de> for BranchInfo
impl<'de> Deserialize<'de> for BranchInfo
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 BranchInfo
impl RefUnwindSafe for BranchInfo
impl Send for BranchInfo
impl Sync for BranchInfo
impl Unpin for BranchInfo
impl UnwindSafe for BranchInfo
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