pub struct ContextCheckpoint {
pub parent: Option<String>,
pub covered_from: u64,
pub covered_to: u64,
pub covered_event_root: String,
pub control: ControlFrame,
pub artifact_refs: Vec<String>,
pub narrative_observation: Option<String>,
}Expand description
A provider-neutral context checkpoint over a covered event range.
Fields§
§parent: Option<String>§covered_from: u64§covered_to: u64§covered_event_root: StringChain head over the covered range.
control: ControlFrame§artifact_refs: Vec<String>Content-addressed artifact references the projection keeps.
narrative_observation: Option<String>Optional narrative summary, as a recorded-observation handle. It is untrusted and can never substitute for control-frame facts.
Implementations§
Source§impl ContextCheckpoint
impl ContextCheckpoint
Sourcepub fn validate_against(
&self,
live_accepted_root: &str,
live_graph_revision: &str,
live_authority_epoch: u64,
) -> Result<()>
pub fn validate_against( &self, live_accepted_root: &str, live_graph_revision: &str, live_authority_epoch: u64, ) -> Result<()>
Structural validation before use (PSP-9 system 14): range sanity, and equality of the live accepted root, revision, and epoch. A stale checkpoint is rebuilt, never patched by a model.
Trait Implementations§
Source§impl Clone for ContextCheckpoint
impl Clone for ContextCheckpoint
Source§fn clone(&self) -> ContextCheckpoint
fn clone(&self) -> ContextCheckpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextCheckpoint
impl Debug for ContextCheckpoint
Source§impl<'de> Deserialize<'de> for ContextCheckpoint
impl<'de> Deserialize<'de> for ContextCheckpoint
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
Source§impl PartialEq for ContextCheckpoint
impl PartialEq for ContextCheckpoint
Source§fn eq(&self, other: &ContextCheckpoint) -> bool
fn eq(&self, other: &ContextCheckpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextCheckpoint
impl Serialize for ContextCheckpoint
impl StructuralPartialEq for ContextCheckpoint
Auto Trait Implementations§
impl Freeze for ContextCheckpoint
impl RefUnwindSafe for ContextCheckpoint
impl Send for ContextCheckpoint
impl Sync for ContextCheckpoint
impl Unpin for ContextCheckpoint
impl UnsafeUnpin for ContextCheckpoint
impl UnwindSafe for ContextCheckpoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.