pub struct CompletionClaim {
pub id: Uuid,
pub subject: EvaluationSubject,
pub criteria: Vec<AcceptanceCriterion>,
pub changed_artifacts: Vec<ArtifactRef>,
pub claimed_evidence: Vec<EvidenceRef>,
pub executor_summary: String,
}Expand description
A completion assertion submitted by an executor.
Fields§
§id: UuidStable claim identity.
subject: EvaluationSubjectExact subject revision being claimed.
criteria: Vec<AcceptanceCriterion>Immutable acceptance criteria snapshot.
changed_artifacts: Vec<ArtifactRef>Artifacts the executor says were changed.
claimed_evidence: Vec<EvidenceRef>Evidence references offered as hints to the evaluator.
executor_summary: StringExecutor summary; never an independent verdict.
Implementations§
Source§impl CompletionClaim
impl CompletionClaim
Sourcepub fn new(
subject: EvaluationSubject,
criteria: Vec<AcceptanceCriterion>,
changed_artifacts: Vec<ArtifactRef>,
claimed_evidence: Vec<EvidenceRef>,
executor_summary: impl Into<String>,
) -> Result<Self, EvaluationError>
pub fn new( subject: EvaluationSubject, criteria: Vec<AcceptanceCriterion>, changed_artifacts: Vec<ArtifactRef>, claimed_evidence: Vec<EvidenceRef>, executor_summary: impl Into<String>, ) -> Result<Self, EvaluationError>
Construct a claim in the evaluation-pending state.
Sourcepub fn evaluation(&self) -> Evaluation
pub fn evaluation(&self) -> Evaluation
Begin a storage-neutral evaluation state machine for this claim.
Trait Implementations§
Source§impl Clone for CompletionClaim
impl Clone for CompletionClaim
Source§fn clone(&self) -> CompletionClaim
fn clone(&self) -> CompletionClaim
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 CompletionClaim
impl Debug for CompletionClaim
Source§impl<'de> Deserialize<'de> for CompletionClaim
impl<'de> Deserialize<'de> for CompletionClaim
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 CompletionClaim
Source§impl JsonSchema for CompletionClaim
impl JsonSchema for CompletionClaim
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CompletionClaim
impl PartialEq for CompletionClaim
Source§impl Serialize for CompletionClaim
impl Serialize for CompletionClaim
impl StructuralPartialEq for CompletionClaim
Auto Trait Implementations§
impl Freeze for CompletionClaim
impl RefUnwindSafe for CompletionClaim
impl Send for CompletionClaim
impl Sync for CompletionClaim
impl Unpin for CompletionClaim
impl UnsafeUnpin for CompletionClaim
impl UnwindSafe for CompletionClaim
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