pub struct CompensationExecutionReceiptV1 {
pub schema_version: String,
pub compensation_execution_receipt_id: CompensationExecutionReceiptId,
pub compensation_plan_id: CompensationPlanId,
pub citation: V25ConstitutionCitation,
pub execution_state: ExecutionStateV1,
pub completed_steps: Vec<String>,
pub failed_steps: Vec<String>,
pub residual_risk_summary: String,
pub generated_at: String,
}Expand description
Receipt recording the outcome of executing a compensation plan, including completed and failed steps.
Completed receipts must not list any failed steps.
Fields§
§schema_version: String§compensation_execution_receipt_id: CompensationExecutionReceiptId§compensation_plan_id: CompensationPlanId§citation: V25ConstitutionCitationCarries EffectiveConstitutionId and CompiledObligationSetId via the canonical v25 citation.
execution_state: ExecutionStateV1§completed_steps: Vec<String>§failed_steps: Vec<String>§residual_risk_summary: String§generated_at: StringImplementations§
Source§impl CompensationExecutionReceiptV1
impl CompensationExecutionReceiptV1
pub const SCHEMA_VERSION: &'static str = "CompensationExecutionReceiptV1"
Sourcepub fn builder(
compensation_execution_receipt_id: CompensationExecutionReceiptId,
compensation_plan_id: CompensationPlanId,
citation: V25ConstitutionCitation,
execution_state: ExecutionStateV1,
completed_steps: Vec<String>,
failed_steps: Vec<String>,
residual_risk_summary: impl Into<String>,
generated_at: impl Into<String>,
) -> CompensationExecutionReceiptV1Builder
pub fn builder( compensation_execution_receipt_id: CompensationExecutionReceiptId, compensation_plan_id: CompensationPlanId, citation: V25ConstitutionCitation, execution_state: ExecutionStateV1, completed_steps: Vec<String>, failed_steps: Vec<String>, residual_risk_summary: impl Into<String>, generated_at: impl Into<String>, ) -> CompensationExecutionReceiptV1Builder
Returns a builder for a validated compensation execution receipt artifact.
Sourcepub fn validate(&self) -> EffectValidationResult
pub fn validate(&self) -> EffectValidationResult
Validates the owner-side invariants for a compensation execution receipt.
Trait Implementations§
Source§impl Clone for CompensationExecutionReceiptV1
impl Clone for CompensationExecutionReceiptV1
Source§fn clone(&self) -> CompensationExecutionReceiptV1
fn clone(&self) -> CompensationExecutionReceiptV1
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<'de> Deserialize<'de> for CompensationExecutionReceiptV1
impl<'de> Deserialize<'de> for CompensationExecutionReceiptV1
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
Source§impl JsonSchema for CompensationExecutionReceiptV1
impl JsonSchema for CompensationExecutionReceiptV1
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 CompensationExecutionReceiptV1
impl PartialEq for CompensationExecutionReceiptV1
Source§fn eq(&self, other: &CompensationExecutionReceiptV1) -> bool
fn eq(&self, other: &CompensationExecutionReceiptV1) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompensationExecutionReceiptV1
Auto Trait Implementations§
impl Freeze for CompensationExecutionReceiptV1
impl RefUnwindSafe for CompensationExecutionReceiptV1
impl Send for CompensationExecutionReceiptV1
impl Sync for CompensationExecutionReceiptV1
impl Unpin for CompensationExecutionReceiptV1
impl UnsafeUnpin for CompensationExecutionReceiptV1
impl UnwindSafe for CompensationExecutionReceiptV1
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