pub struct BranchListResult {
pub default_branch: String,
pub current_branch: Option<String>,
pub branches: Vec<String>,
pub parents: HashMap<String, String>,
pub ahead_behind: HashMap<String, (usize, usize)>,
pub remote_tracking: HashMap<String, RemoteTrackingInfo>,
pub remote_only_branches: Vec<String>,
pub last_fetch: Option<u64>,
}Expand description
Result of listing branches for a repository
Fields§
§default_branch: StringDetected default branch (main, master, etc.)
current_branch: Option<String>Currently checked-out branch (HEAD)
branches: Vec<String>All local branch names
parents: HashMap<String, String>Parent branch map: branch_name → closest ancestor branch
ahead_behind: HashMap<String, (usize, usize)>Ahead/behind counts vs default branch: branch_name → (ahead, behind)
remote_tracking: HashMap<String, RemoteTrackingInfo>Remote tracking info per branch
remote_only_branches: Vec<String>Remote-only branches (no local counterpart), e.g., “origin/fix-hook-script”
last_fetch: Option<u64>Last fetch timestamp (Unix seconds), None if never fetched
Trait Implementations§
Source§impl Clone for BranchListResult
impl Clone for BranchListResult
Source§fn clone(&self) -> BranchListResult
fn clone(&self) -> BranchListResult
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 BranchListResult
impl Debug for BranchListResult
Auto Trait Implementations§
impl Freeze for BranchListResult
impl RefUnwindSafe for BranchListResult
impl Send for BranchListResult
impl Sync for BranchListResult
impl Unpin for BranchListResult
impl UnsafeUnpin for BranchListResult
impl UnwindSafe for BranchListResult
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.