pub struct ReasoningRecord {
pub reasoning_uuid: Uuid,
pub assertion_uuid: Uuid,
pub kind: ReasoningKind,
pub content_format: ReasoningContentFormat,
pub content: Vec<u8>,
pub supersedes_reasoning_uuid: Option<Uuid>,
pub provenance_uuid: Uuid,
pub recorded_at_micros: i64,
pub contract_version: u32,
}Expand description
One immutable reasoning record or explicit amendment.
Fields§
§reasoning_uuid: UuidCaller-supplied UUIDv7 identity/idempotency key.
assertion_uuid: UuidExisting immutable M20 assertion.
kind: ReasoningKindClosed reasoning purpose.
content_format: ReasoningContentFormatClosed exact-content encoding.
content: Vec<u8>Exact accepted bytes.
supersedes_reasoning_uuid: Option<Uuid>Prior reasoning record amended by this record.
provenance_uuid: UuidProducing provenance event.
recorded_at_micros: i64Mandatory transaction time.
contract_version: u32Frozen record contract.
Implementations§
Source§impl ReasoningRecord
impl ReasoningRecord
Sourcepub fn new(
reasoning_uuid: Uuid,
assertion_uuid: Uuid,
kind: ReasoningKind,
content_format: ReasoningContentFormat,
content: Vec<u8>,
supersedes_reasoning_uuid: Option<Uuid>,
provenance_uuid: Uuid,
recorded_at_micros: i64,
) -> Result<Self, KnowledgeError>
pub fn new( reasoning_uuid: Uuid, assertion_uuid: Uuid, kind: ReasoningKind, content_format: ReasoningContentFormat, content: Vec<u8>, supersedes_reasoning_uuid: Option<Uuid>, provenance_uuid: Uuid, recorded_at_micros: i64, ) -> Result<Self, KnowledgeError>
Validate and construct one immutable record.
Trait Implementations§
Source§impl Clone for ReasoningRecord
impl Clone for ReasoningRecord
Source§impl Debug for ReasoningRecord
impl Debug for ReasoningRecord
impl Eq for ReasoningRecord
Source§impl PartialEq for ReasoningRecord
impl PartialEq for ReasoningRecord
impl StructuralPartialEq for ReasoningRecord
Auto Trait Implementations§
impl Freeze for ReasoningRecord
impl RefUnwindSafe for ReasoningRecord
impl Send for ReasoningRecord
impl Sync for ReasoningRecord
impl Unpin for ReasoningRecord
impl UnsafeUnpin for ReasoningRecord
impl UnwindSafe for ReasoningRecord
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.