pub struct BranchInfo {
pub name: String,
pub head: CommitId,
pub seq: u64,
pub key_count: usize,
pub is_default: bool,
}Expand description
Summary of one branch (DESIGN §4.1).
Fields§
§name: StringThe branch name.
head: CommitIdThe commit the branch currently points at.
seq: u64The sequence number of that commit.
key_count: usizeHow many keys the branch holds.
is_default: boolWhether this is the database’s default branch, which cannot be discarded.
Trait Implementations§
Source§impl Clone for BranchInfo
impl Clone for BranchInfo
Auto 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