pub struct IngestOutcome {
pub revision: GraphRevision,
pub replayed: bool,
pub counts: IngestCounts,
pub per_item_nodes: Option<Vec<ItemOutcome>>,
pub per_item_edges: Option<Vec<ItemOutcome>>,
}Expand description
Outcome of one ingest call.
Fields§
§revision: GraphRevisionRevision the graph reached once the batch committed (unchanged when the batch converged without modifying anything).
replayed: boolTrue when an idempotency receipt answered the call without touching state.
A replayed outcome is the record of the first attempt’s commit, not a
view of the graph now: revision and counts are what that commit
reached and did, and a later write — a scope replacement included —
may since have changed or removed what it wrote. It carries no
per-item lists, because the receipt keeps counts only. A producer that
needs current state reads it, and compares revision with the
tenant’s current one to know whether anything has committed since.
counts: IngestCounts§per_item_nodes: Option<Vec<ItemOutcome>>§per_item_edges: Option<Vec<ItemOutcome>>Trait Implementations§
Source§impl Clone for IngestOutcome
impl Clone for IngestOutcome
Source§impl Debug for IngestOutcome
impl Debug for IngestOutcome
impl Eq for IngestOutcome
Source§impl PartialEq for IngestOutcome
impl PartialEq for IngestOutcome
impl StructuralPartialEq for IngestOutcome
Auto Trait Implementations§
impl Freeze for IngestOutcome
impl RefUnwindSafe for IngestOutcome
impl Send for IngestOutcome
impl Sync for IngestOutcome
impl Unpin for IngestOutcome
impl UnsafeUnpin for IngestOutcome
impl UnwindSafe for IngestOutcome
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
Mutably borrows from an owned value. Read more
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.