pub struct BranchInfo {
pub name: String,
pub head_short: String,
pub head: String,
pub subject: String,
pub author: String,
pub timestamp: String,
}Expand description
Summary information about a local branch.
Fields§
§name: StringBranch name (e.g., “main”, “feature/foo”).
head_short: StringShort (8-char) hex of the tip commit.
head: StringFull hex OID of the tip commit.
subject: StringFirst line of the tip commit message.
Author name of the tip commit.
timestamp: StringISO 8601 timestamp of the tip commit.
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 moreAuto Trait Implementations§
impl Freeze for BranchInfo
impl RefUnwindSafe for BranchInfo
impl Send for BranchInfo
impl Sync for BranchInfo
impl Unpin for BranchInfo
impl UnsafeUnpin 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