pub struct BeliefProjectionAttachmentLedger {
pub attachments: Vec<BeliefProjectionAttachment>,
}Expand description
Validated append-only interpretation-attachment participant.
Fields§
§attachments: Vec<BeliefProjectionAttachment>Attachments ordered by (recorded_at, attachment_uuid).
Implementations§
Source§impl BeliefProjectionAttachmentLedger
impl BeliefProjectionAttachmentLedger
Sourcepub fn new(
attachments: Vec<BeliefProjectionAttachment>,
) -> Result<Self, KnowledgeError>
pub fn new( attachments: Vec<BeliefProjectionAttachment>, ) -> Result<Self, KnowledgeError>
Validate, sort, and construct a complete participant.
Sourcepub fn merge(&self, staged: &Self) -> Result<Self, KnowledgeError>
pub fn merge(&self, staged: &Self) -> Result<Self, KnowledgeError>
Merge with exact replay and transaction-conflict semantics.
Sourcepub fn attachment_fingerprint(
&self,
id: Uuid,
) -> Result<[u8; 32], KnowledgeError>
pub fn attachment_fingerprint( &self, id: Uuid, ) -> Result<[u8; 32], KnowledgeError>
Canonical fingerprint over one exact immutable attachment.
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 exact Arrow batches and re-run every invariant.
Trait Implementations§
impl Eq for BeliefProjectionAttachmentLedger
impl StructuralPartialEq for BeliefProjectionAttachmentLedger
Auto Trait Implementations§
impl Freeze for BeliefProjectionAttachmentLedger
impl RefUnwindSafe for BeliefProjectionAttachmentLedger
impl Send for BeliefProjectionAttachmentLedger
impl Sync for BeliefProjectionAttachmentLedger
impl Unpin for BeliefProjectionAttachmentLedger
impl UnsafeUnpin for BeliefProjectionAttachmentLedger
impl UnwindSafe for BeliefProjectionAttachmentLedger
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.