pub struct ForkBasis {
pub manifest: ManifestRef,
pub source_checkpoint_id: CheckpointId,
}Expand description
Where a fork target’s metadata basis lives before the target publishes its own manifest, and the permanent record of what it was forked from.
Present in every successor head of a fork target, absent in every head of a created namespace. The basis is head-authorized: a reader that resolves through it must verify the loaded manifest against both the namespace id and the checksum recorded here, and report corruption on any mismatch — there is no fallback (format spec, “Resolving the metadata basis”).
Fields§
§manifest: ManifestRefSource manifest used as the target’s initial state. Its owner must
differ from the target namespace. manifest_head_seq is the target’s
initial sequence.
source_checkpoint_id: CheckpointIdSource checkpoint record pinning the basis for as long as the target lives.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ForkBasis
impl<'de> Deserialize<'de> for ForkBasis
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 ForkBasis
impl StructuralPartialEq for ForkBasis
Auto Trait Implementations§
impl Freeze for ForkBasis
impl RefUnwindSafe for ForkBasis
impl Send for ForkBasis
impl Sync for ForkBasis
impl Unpin for ForkBasis
impl UnsafeUnpin for ForkBasis
impl UnwindSafe for ForkBasis
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