pub struct CheckRecord {Show 15 fields
pub ts: u64,
pub observed_at: Option<u64>,
pub entity: String,
pub verdict: String,
pub method: Option<String>,
pub entity_hash: String,
pub actor: String,
pub client: Option<String>,
pub role: String,
pub identity: Option<String>,
pub kind: Option<String>,
pub schema_ref: Option<String>,
pub finding: Option<CheckFinding>,
pub renamed_from: Option<String>,
pub carried_from: Option<CarriedFrom>,
}Expand description
One recorded check — the full ledger line.
Fields§
§ts: u64Unix epoch seconds at record time: the engine’s clock when the line was written, never caller-supplied.
observed_at: Option<u64>Unix epoch seconds at which the check was MADE, when the caller
said so (observed_at on memstead check, a --from row and
memstead_check): a recorder transcribing checks that were made
earlier, or out of order, states the time of each act here and
ts keeps the time of the transcription. Informational: a reader
ordering checks by time takes observed_at where present and ts
otherwise; the engine’s own state derivation (“the newest record
of a kind”) reads ledger order and ignores both. Absent on every
line written without it, so existing ledgers parse unchanged.
entity: StringFull entity id (mem--slug).
verdict: Stringok | failed.
method: Option<String>Optional free-text method note (“diffed against source spec”, “re-ran the derivation”).
entity_hash: StringThe entity’s content_hash at check time — the staleness
baseline.
actor: StringRecorded actor identity (plan-13 provenance).
client: Option<String>Recorded client identity (name@version), when known.
role: StringThe caller-declared role, or "unspecified" — recorded
honestly; downstream gates treat unspecified as
cannot-confirm, never as any real role.
identity: Option<String>The caller-declared identity: an opaque
caller-chosen string, the ONLY comparator the independence
gate uses. Absent on ledger lines written before identities
existed and on identity-less callers — both downgrade every
comparison to unconfirmable, never to a guessed category.
kind: Option<String>The check kind, from CHECK_KINDS. Absent on ledger lines
written before kinds existed AND on freshly recorded
verification checks — both read as verification, so an
existing ledger upgrades with no migration and a kind-omitted
caller’s lines stay byte-identical to before.
schema_ref: Option<String>For conformance records: the mem’s schema pin
(name@x.y.z) as stamped by the engine at record time — never
caller-supplied, so a verdict cannot claim a prose version the
caller never read. Absent on verification records.
finding: Option<CheckFinding>The structured finding the checker attached, when one was. Absent on every line written before findings existed and on finding-less checks — serde-default, so every existing line still parses and finding-less lines stay byte-identical.
renamed_from: Option<String>Set on a line the engine carried across a rename: the id the
check was recorded under before the entity took its current id.
Every other field is the original act’s, hash included, so the
state derived under the new id stays honest — a rename rewrites
the file (title, self-links, timestamps), so the carried record
reads check_stale until someone checks the renamed entity; what
the carry prevents is the ledger losing the entity (never_checked
under the new id, an unreachable row under the old). Absent on
every line a checker wrote.
carried_from: Option<CarriedFrom>Set on a line the engine carried to a new entity_hash (a
licensed transition, a sealed export): the hash it was keyed to
before and the reason. Absent on every line a checker wrote.
Implementations§
Source§impl CheckRecord
impl CheckRecord
Sourcepub fn resolved_kind(&self) -> Option<CheckKind>
pub fn resolved_kind(&self) -> Option<CheckKind>
The record’s ENGINE kind, legacy lines included: an absent or
unrecognised kind reads as verification, which is exactly what
every pre-kind line was; a foreign x-<name> kind is None —
recorded, listed, never aggregated into a state.
Sourcepub fn foreign_kind(&self) -> Option<&str>
pub fn foreign_kind(&self) -> Option<&str>
The foreign kind, when the record carries one.
Trait Implementations§
Source§impl Clone for CheckRecord
impl Clone for CheckRecord
Source§impl Debug for CheckRecord
impl Debug for CheckRecord
Source§impl<'de> Deserialize<'de> for CheckRecord
impl<'de> Deserialize<'de> for CheckRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CheckRecord
impl RefUnwindSafe for CheckRecord
impl Send for CheckRecord
impl Sync for CheckRecord
impl Unpin for CheckRecord
impl UnsafeUnpin for CheckRecord
impl UnwindSafe for CheckRecord
Blanket Implementations§
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more