pub struct BranchInfo {
pub name: String,
pub head: CommitId,
pub seq: u64,
pub key_count: usize,
pub is_default: bool,
pub forked_at: CommitId,
}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.
forked_at: CommitIdThe commit the branch was created at: its fork point, or genesis for the default branch.
Trait Implementations§
Source§impl Clone for BranchInfo
impl Clone for BranchInfo
Auto Trait Implementations§
impl Forget for BranchInfo
impl Freeze for BranchInfo
impl Move 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