pub struct AxiomClaimInput {
pub axiom_label: String,
pub axiom_kind: AxiomElementKind,
pub statement: String,
pub status: AxiomStatus,
pub evidence_kind: AxiomEvidenceKind,
pub evidence_refs: Vec<String>,
pub capability_refs: Vec<String>,
pub residual_risks: Vec<String>,
pub requested_ceiling: ClaimCeiling,
}Expand description
A candidate AXIOM element before Cortex maps it into shared claim language.
Fields§
§axiom_label: StringStable AXIOM label such as CHK[1], HYP[2], or CAP[1].
axiom_kind: AxiomElementKindAXIOM element kind.
statement: StringHuman-readable statement.
status: AxiomStatusCHECK-time status.
evidence_kind: AxiomEvidenceKindEvidence kind declared by AXIOM.
evidence_refs: Vec<String>Concrete source anchors or evidence refs.
capability_refs: Vec<String>Capability/tool invocation refs, when applicable.
residual_risks: Vec<String>Residual risks attached to the element.
requested_ceiling: ClaimCeilingHighest Cortex claim level requested by the producer.
Implementations§
Source§impl AxiomClaimInput
impl AxiomClaimInput
Sourcepub fn new(
axiom_label: impl Into<String>,
axiom_kind: AxiomElementKind,
statement: impl Into<String>,
status: AxiomStatus,
evidence_kind: AxiomEvidenceKind,
) -> Self
pub fn new( axiom_label: impl Into<String>, axiom_kind: AxiomElementKind, statement: impl Into<String>, status: AxiomStatus, evidence_kind: AxiomEvidenceKind, ) -> Self
Construct an AXIOM claim input.
Sourcepub fn with_evidence_refs<I, S>(self, refs: I) -> Self
pub fn with_evidence_refs<I, S>(self, refs: I) -> Self
Attach source/evidence refs.
Sourcepub fn with_capability_refs<I, S>(self, refs: I) -> Self
pub fn with_capability_refs<I, S>(self, refs: I) -> Self
Attach capability refs.
Sourcepub fn with_residual_risks<I, S>(self, risks: I) -> Self
pub fn with_residual_risks<I, S>(self, risks: I) -> Self
Attach residual risks.
Sourcepub const fn with_requested_ceiling(self, ceiling: ClaimCeiling) -> Self
pub const fn with_requested_ceiling(self, ceiling: ClaimCeiling) -> Self
Set the requested ceiling.
Trait Implementations§
Source§impl Clone for AxiomClaimInput
impl Clone for AxiomClaimInput
Source§fn clone(&self) -> AxiomClaimInput
fn clone(&self) -> AxiomClaimInput
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 AxiomClaimInput
impl Debug for AxiomClaimInput
Source§impl<'de> Deserialize<'de> for AxiomClaimInput
impl<'de> Deserialize<'de> for AxiomClaimInput
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 AxiomClaimInput
impl JsonSchema for AxiomClaimInput
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 AxiomClaimInput
impl PartialEq for AxiomClaimInput
Source§fn eq(&self, other: &AxiomClaimInput) -> bool
fn eq(&self, other: &AxiomClaimInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AxiomClaimInput
impl Serialize for AxiomClaimInput
impl Eq for AxiomClaimInput
impl StructuralPartialEq for AxiomClaimInput
Auto Trait Implementations§
impl Freeze for AxiomClaimInput
impl RefUnwindSafe for AxiomClaimInput
impl Send for AxiomClaimInput
impl Sync for AxiomClaimInput
impl Unpin for AxiomClaimInput
impl UnsafeUnpin for AxiomClaimInput
impl UnwindSafe for AxiomClaimInput
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