pub struct AssertionSupersessionLedger { /* private fields */ }Expand description
Validated branch-preserving supersession participant.
Implementations§
Source§impl AssertionSupersessionLedger
impl AssertionSupersessionLedger
Sourcepub fn relations(&self) -> &[AssertionSupersession]
pub fn relations(&self) -> &[AssertionSupersession]
Return validated relations in canonical order.
Sourcepub fn new(
relations: Vec<AssertionSupersession>,
) -> Result<Self, KnowledgeError>
pub fn new( relations: Vec<AssertionSupersession>, ) -> Result<Self, KnowledgeError>
Validate, sort, and construct one complete participant.
Sourcepub fn merge(&self, staged: &Self) -> Result<Self, KnowledgeError>
pub fn merge(&self, staged: &Self) -> Result<Self, KnowledgeError>
Merge append-only relations with exact replay semantics.
Sourcepub fn relation_fingerprint(
&self,
supersession_uuid: Uuid,
) -> Result<[u8; 32], KnowledgeError>
pub fn relation_fingerprint( &self, supersession_uuid: Uuid, ) -> Result<[u8; 32], KnowledgeError>
Canonical fingerprint over one exact immutable relation.
Sourcepub fn batch(&self) -> Result<RecordBatch, KnowledgeError>
pub fn batch(&self) -> Result<RecordBatch, KnowledgeError>
Build the authoritative Arrow batch.
Sourcepub fn from_batches(batches: &[RecordBatch]) -> Result<Self, KnowledgeError>
pub fn from_batches(batches: &[RecordBatch]) -> Result<Self, KnowledgeError>
Decode and validate exact Arrow batches.
Trait Implementations§
Source§impl Clone for AssertionSupersessionLedger
impl Clone for AssertionSupersessionLedger
Source§impl Debug for AssertionSupersessionLedger
impl Debug for AssertionSupersessionLedger
impl Eq for AssertionSupersessionLedger
impl StructuralPartialEq for AssertionSupersessionLedger
Auto Trait Implementations§
impl Freeze for AssertionSupersessionLedger
impl RefUnwindSafe for AssertionSupersessionLedger
impl Send for AssertionSupersessionLedger
impl Sync for AssertionSupersessionLedger
impl Unpin for AssertionSupersessionLedger
impl UnsafeUnpin for AssertionSupersessionLedger
impl UnwindSafe for AssertionSupersessionLedger
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.