pub enum Record {
Commit {
branch: String,
parents: SmallVec<[CommitId; 2]>,
seq: u64,
message: Option<String>,
ops: Vec<Op>,
},
BranchCreated {
name: String,
at: CommitId,
},
BranchDiscarded {
name: String,
},
HeadMoved {
branch: String,
to: CommitId,
},
}Expand description
One durable change to the database.
Variants§
Commit
A commit was made on a branch.
Fields
BranchCreated
A branch was created, pointing at an existing commit.
BranchDiscarded
A branch was deleted.
HeadMoved
A branch head moved without a new commit, as a fast-forward merge does.
Trait Implementations§
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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