pub struct IngestedRecord {
pub id: IngestedRecordId,
pub kind: IngestionKind,
pub payload: Value,
pub payload_ref: Option<PayloadRef>,
pub ingested_by: Option<Actor>,
pub event_seq: Seq,
pub ingested_at: Timestamp,
}Expand description
One record that entered the log through ingestion rather than through an aggregate’s lifecycle.
Immutable like Evidence — no version, no state, written once. Its
kind is the CLOSED IngestionKind set, unlike the open classification
strings elsewhere in this contract: the absence of an import path is
load-bearing here, and an open string would be that door.
payload and payload_ref are not exclusive. The inline half is bounded
(the append path enforces
INLINE_PAYLOAD_MAX_BYTES) and
carries either the whole content or a descriptor of the blob beside it —
a graph snapshot’s node and edge counts are worth having in the projection
without fetching ninety megabytes to learn them.
Fields§
§id: IngestedRecordId§kind: IngestionKind§payload: Value§payload_ref: Option<PayloadRef>§ingested_by: Option<Actor>§event_seq: SeqWhere this record’s event sits in the log — the pointer back to the one thing that can prove the row, since ingestion writes no transition.
ingested_at: TimestampTrait Implementations§
Source§impl Clone for IngestedRecord
impl Clone for IngestedRecord
Source§fn clone(&self) -> IngestedRecord
fn clone(&self) -> IngestedRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more