pub struct ControlReceipt {Show 30 fields
pub schema_version: String,
pub receipt_id: ControlReceiptId,
pub action_kind: ControlActionKind,
pub case_id: Option<VerificationCaseId>,
pub plan_id: Option<CheckPlanId>,
pub trace_ctx: TraceCtx,
pub attempt_id: AttemptId,
pub trial_id: Option<TrialId>,
pub actor: String,
pub planner_stage: Option<String>,
pub started_at: String,
pub finished_at: String,
pub citation: V25CitationContext,
pub obligation_refs: V25ControlObligationRefs,
pub citation_status: ConstitutionalContextStatus,
pub obligation_refs_status: ConstitutionalContextStatus,
pub deadline: Option<String>,
pub workload_class: Option<String>,
pub budget_context: Option<ReceiptBudgetContext>,
pub parent_receipt_id: Option<ControlReceiptId>,
pub family_receipt_id: Option<ControlReceiptId>,
pub replay_parent_receipt_id: Option<ControlReceiptId>,
pub retry_owner: Option<ControlRetryOwnerV1>,
pub non_authoritative: bool,
pub advisory_only: bool,
pub degraded: bool,
pub promotable: bool,
pub source_receipt_kind: String,
pub source_receipt_id: Option<String>,
pub details: Value,
}Expand description
An immutable receipt recording a control-plane action with full provenance.
Control receipts carry constitutional citation context, budget context, retry ownership, and promotion eligibility. They are the atomic audit unit for the verification ledger.
Fields§
§schema_version: String§receipt_id: ControlReceiptId§action_kind: ControlActionKind§case_id: Option<VerificationCaseId>§plan_id: Option<CheckPlanId>§trace_ctx: TraceCtx§attempt_id: AttemptId§trial_id: Option<TrialId>§actor: String§planner_stage: Option<String>§started_at: String§finished_at: String§citation: V25CitationContext§obligation_refs: V25ControlObligationRefs§citation_status: ConstitutionalContextStatus§obligation_refs_status: ConstitutionalContextStatus§deadline: Option<String>§workload_class: Option<String>§budget_context: Option<ReceiptBudgetContext>§parent_receipt_id: Option<ControlReceiptId>§family_receipt_id: Option<ControlReceiptId>§replay_parent_receipt_id: Option<ControlReceiptId>§retry_owner: Option<ControlRetryOwnerV1>§advisory_only: bool§degraded: bool§promotable: bool§source_receipt_kind: String§source_receipt_id: Option<String>§details: ValueImplementations§
Source§impl ControlReceipt
impl ControlReceipt
Sourcepub fn new_case_execution(
case: &VerificationCase,
plan: &CheckPlan,
attempt: &VerificationAttempt,
promotable: bool,
details: Value,
) -> Self
pub fn new_case_execution( case: &VerificationCase, plan: &CheckPlan, attempt: &VerificationAttempt, promotable: bool, details: Value, ) -> Self
Creates a verification execution receipt with explicit missing constitutional context status.
Trait Implementations§
Source§impl Clone for ControlReceipt
impl Clone for ControlReceipt
Source§fn clone(&self) -> ControlReceipt
fn clone(&self) -> ControlReceipt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlReceipt
impl Debug for ControlReceipt
Source§impl<'de> Deserialize<'de> for ControlReceipt
impl<'de> Deserialize<'de> for ControlReceipt
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ControlReceipt
Source§impl From<&ForgeToolReceiptV2> for ControlReceipt
impl From<&ForgeToolReceiptV2> for ControlReceipt
Source§fn from(value: &ForgeToolReceiptV2) -> Self
fn from(value: &ForgeToolReceiptV2) -> Self
Converts to this type from the input type.
Source§impl From<&ToolReceipt> for ControlReceipt
impl From<&ToolReceipt> for ControlReceipt
Source§fn from(value: &ToolReceipt) -> Self
fn from(value: &ToolReceipt) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ControlReceipt
impl JsonSchema for ControlReceipt
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ControlReceipt
impl PartialEq for ControlReceipt
Source§fn eq(&self, other: &ControlReceipt) -> bool
fn eq(&self, other: &ControlReceipt) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControlReceipt
impl Serialize for ControlReceipt
impl StructuralPartialEq for ControlReceipt
Auto Trait Implementations§
impl Freeze for ControlReceipt
impl RefUnwindSafe for ControlReceipt
impl Send for ControlReceipt
impl Sync for ControlReceipt
impl Unpin for ControlReceipt
impl UnsafeUnpin for ControlReceipt
impl UnwindSafe for ControlReceipt
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