pub struct ReceiptContext {
pub client_id: String,
pub receipt_id: String,
pub parent_receipt_id: Option<String>,
pub at_epoch_s: u64,
pub harness_session_id: Option<String>,
pub harness_run_id: Option<String>,
pub harness_task_id: Option<String>,
}Expand description
Caller-supplied identifiers and clock value Lifeloop cannot synthesize on its own. Every field except the harness ids is required.
Fields§
§client_id: StringClient-declared stable label scoping idempotency and replay.
Each lifecycle client picks its own opaque identifier; see the
spec’s “Receipt Schema” section in
docs/specs/lifecycle-contract/body.md for the illustrative
client-label list. Required-non-empty.
receipt_id: StringOpaque identifier for this emitted receipt. Required-non-empty.
parent_receipt_id: Option<String>Optional parent receipt id for nested or causally linked
lifecycle receipts. None for root receipts.
at_epoch_s: u64Wall-clock value to stamp on the receipt. Required.
harness_session_id: Option<String>Optional harness session id correlation.
harness_run_id: Option<String>Optional harness run id correlation. Receipts in the same
lifeloop_run_id (= harness_run_id when present) share a
monotonic SequenceGenerator counter; absent run id means
no in-run sequence is synthesized (sequence = None).
harness_task_id: Option<String>Optional harness task id correlation.
Trait Implementations§
Source§impl Clone for ReceiptContext
impl Clone for ReceiptContext
Source§fn clone(&self) -> ReceiptContext
fn clone(&self) -> ReceiptContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReceiptContext
impl Debug for ReceiptContext
Source§impl PartialEq for ReceiptContext
impl PartialEq for ReceiptContext
Source§fn eq(&self, other: &ReceiptContext) -> bool
fn eq(&self, other: &ReceiptContext) -> bool
self and other values to be equal, and is used by ==.impl Eq for ReceiptContext
impl StructuralPartialEq for ReceiptContext
Auto Trait Implementations§
impl Freeze for ReceiptContext
impl RefUnwindSafe for ReceiptContext
impl Send for ReceiptContext
impl Sync for ReceiptContext
impl Unpin for ReceiptContext
impl UnsafeUnpin for ReceiptContext
impl UnwindSafe for ReceiptContext
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
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
key and return true if they are equal.