pub struct AssertionValidityEvent {
pub validity_event_uuid: Uuid,
pub assertion_uuid: Uuid,
pub valid_from_micros: Option<i64>,
pub valid_to_micros: Option<i64>,
pub reasoning_uuid: Option<Uuid>,
pub provenance_uuid: Uuid,
pub recorded_at_micros: i64,
pub contract_version: u32,
}Expand description
One immutable correction to an assertion’s valid-time interpretation.
Fields§
§validity_event_uuid: UuidCaller-supplied UUIDv7 identity/idempotency key.
assertion_uuid: UuidExisting immutable assertion.
valid_from_micros: Option<i64>Inclusive lower bound, or unbounded when absent.
valid_to_micros: Option<i64>Exclusive upper bound, or unbounded when absent.
reasoning_uuid: Option<Uuid>Optional existing immutable reasoning record.
provenance_uuid: UuidExisting producing provenance event.
recorded_at_micros: i64Mandatory transaction time.
contract_version: u32Frozen record contract.
Implementations§
Source§impl AssertionValidityEvent
impl AssertionValidityEvent
Sourcepub fn new(
validity_event_uuid: Uuid,
assertion_uuid: Uuid,
valid_from_micros: Option<i64>,
valid_to_micros: Option<i64>,
reasoning_uuid: Option<Uuid>,
provenance_uuid: Uuid,
recorded_at_micros: i64,
) -> Result<Self, KnowledgeError>
pub fn new( validity_event_uuid: Uuid, assertion_uuid: Uuid, valid_from_micros: Option<i64>, valid_to_micros: Option<i64>, reasoning_uuid: Option<Uuid>, provenance_uuid: Uuid, recorded_at_micros: i64, ) -> Result<Self, KnowledgeError>
Validate and construct one immutable half-open interval event.
Trait Implementations§
Source§impl Clone for AssertionValidityEvent
impl Clone for AssertionValidityEvent
Source§impl Debug for AssertionValidityEvent
impl Debug for AssertionValidityEvent
impl Eq for AssertionValidityEvent
Source§impl PartialEq for AssertionValidityEvent
impl PartialEq for AssertionValidityEvent
impl StructuralPartialEq for AssertionValidityEvent
Auto Trait Implementations§
impl Freeze for AssertionValidityEvent
impl RefUnwindSafe for AssertionValidityEvent
impl Send for AssertionValidityEvent
impl Sync for AssertionValidityEvent
impl Unpin for AssertionValidityEvent
impl UnsafeUnpin for AssertionValidityEvent
impl UnwindSafe for AssertionValidityEvent
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.