pub struct ResearchClaimLedger { /* private fields */ }Expand description
Frozen research classifications and explicit claim relations.
Implementations§
Source§impl ResearchClaimLedger
impl ResearchClaimLedger
Sourcepub fn conceptual_origin(
&self,
assertion: Uuid,
supersessions: &AssertionSupersessionLedger,
) -> Result<Uuid, KnowledgeError>
pub fn conceptual_origin( &self, assertion: Uuid, supersessions: &AssertionSupersessionLedger, ) -> Result<Uuid, KnowledgeError>
Resolve stable conceptual origin through classified and legacy successors.
Sourcepub fn claim_batch(&self) -> Result<RecordBatch, KnowledgeError>
pub fn claim_batch(&self) -> Result<RecordBatch, KnowledgeError>
Encode frozen classifications as native Arrow.
Sourcepub fn relation_batch(&self) -> Result<RecordBatch, KnowledgeError>
pub fn relation_batch(&self) -> Result<RecordBatch, KnowledgeError>
Encode explicit claim relations as native Arrow.
Sourcepub fn from_batches(
claims: &[RecordBatch],
relations: &[RecordBatch],
) -> Result<Self, KnowledgeError>
pub fn from_batches( claims: &[RecordBatch], relations: &[RecordBatch], ) -> Result<Self, KnowledgeError>
Decode bounded frozen metadata, validating immutable identities.
Sourcepub fn new(
claims: Vec<ResearchClaimRecord>,
relations: Vec<ClaimRelationRecord>,
) -> Result<Self, KnowledgeError>
pub fn new( claims: Vec<ResearchClaimRecord>, relations: Vec<ClaimRelationRecord>, ) -> Result<Self, KnowledgeError>
Validate identities and deterministic ordering without inventing legacy metadata.
Sourcepub fn merge(&self, staged: &Self) -> Result<Self, KnowledgeError>
pub fn merge(&self, staged: &Self) -> Result<Self, KnowledgeError>
Exact metadata replay is idempotent; immutable identity rewrites conflict.
Sourcepub fn validate_references(
&self,
assertions: &AssertionLedger,
supersessions: &AssertionSupersessionLedger,
) -> Result<(), KnowledgeError>
pub fn validate_references( &self, assertions: &AssertionLedger, supersessions: &AssertionSupersessionLedger, ) -> Result<(), KnowledgeError>
Validate joins against the existing immutable owners before publication.
Sourcepub fn claims(&self) -> &[ResearchClaimRecord]
pub fn claims(&self) -> &[ResearchClaimRecord]
Existing assertions with no row remain unclassified/statusless.
Sourcepub fn relations(&self) -> &[ClaimRelationRecord]
pub fn relations(&self) -> &[ClaimRelationRecord]
All explicit alternatives and relations; no winner is inferred.
Trait Implementations§
Source§impl Clone for ResearchClaimLedger
impl Clone for ResearchClaimLedger
Source§impl Debug for ResearchClaimLedger
impl Debug for ResearchClaimLedger
Source§impl Default for ResearchClaimLedger
impl Default for ResearchClaimLedger
impl Eq for ResearchClaimLedger
Source§impl PartialEq for ResearchClaimLedger
impl PartialEq for ResearchClaimLedger
impl StructuralPartialEq for ResearchClaimLedger
Auto Trait Implementations§
impl Freeze for ResearchClaimLedger
impl RefUnwindSafe for ResearchClaimLedger
impl Send for ResearchClaimLedger
impl Sync for ResearchClaimLedger
impl Unpin for ResearchClaimLedger
impl UnsafeUnpin for ResearchClaimLedger
impl UnwindSafe for ResearchClaimLedger
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.