pub struct CompactV0 {
pub heads: Vec<ObjectId>,
pub origin: Vec<u8>,
pub content: ObjectRef,
}
Expand description
Compact: Hard Snapshot of a Branch
Contains a data structure computed from the commits at the specified head. ACKS contains the head the snapshot was made from
hard snapshot will erase all the CommitBody of ancestors in the branch the compact boolean should be set in the Header too. after a hard snapshot, it is recommended to refresh the read capability (to empty the topics of the keys they still hold) If a branch is based on a hard snapshot, it cannot be merged back into the branch where the hard snapshot was made.
Fields§
§heads: Vec<ObjectId>
§origin: Vec<u8>
§content: ObjectRef
Reference to Object containing Snapshot data structure
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CompactV0
impl<'de> Deserialize<'de> for CompactV0
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CompactV0
impl StructuralPartialEq for CompactV0
Auto Trait Implementations§
impl Freeze for CompactV0
impl RefUnwindSafe for CompactV0
impl Send for CompactV0
impl Sync for CompactV0
impl Unpin for CompactV0
impl UnwindSafe for CompactV0
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