pub struct CommitHeaderV0 {
pub id: Option<ObjectId>,
pub deps: Vec<ObjectId>,
pub ndeps: Vec<ObjectId>,
pub compact: bool,
pub acks: Vec<ObjectId>,
pub nacks: Vec<ObjectId>,
pub files: Vec<ObjectId>,
pub nfiles: Vec<ObjectId>,
}
Expand description
Header of a Commit, can be embedded or as a ref
Fields§
§id: Option<ObjectId>
optional Commit Header ID
deps: Vec<ObjectId>
Other objects this commit strongly depends on (ex: ADD for a REMOVE, files for an nfiles)
ndeps: Vec<ObjectId>
dependency that is removed after this commit. used for reverts
compact: bool
tells brokers that this is a hard snapshot and that all the ACKs and full causal past should be treated as ndeps (their body removed) brokers will only perform the deletion of bodies after this commit has been ACKed by at least one subsequent commit but if the next commit is a nack, the deletion is prevented.
acks: Vec<ObjectId>
current valid commits in head
nacks: Vec<ObjectId>
head commits that are invalid
files: Vec<ObjectId>
list of Files that are referenced in this commit
nfiles: Vec<ObjectId>
list of Files that are not referenced anymore after this commit the commit(s) that created the files should be in deps
Implementations§
Source§impl CommitHeaderV0
impl CommitHeaderV0
Trait Implementations§
Source§impl Clone for CommitHeaderV0
impl Clone for CommitHeaderV0
Source§fn clone(&self) -> CommitHeaderV0
fn clone(&self) -> CommitHeaderV0
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more