pub struct CortexClaimMapping {
pub axiom_label: String,
pub axiom_kind: AxiomElementKind,
pub cortex_role: CortexClaimRole,
pub statement: String,
pub evidence_kind: AxiomEvidenceKind,
pub status: AxiomStatus,
pub evidence_refs: Vec<String>,
pub capability_refs: Vec<String>,
pub residual_risks: Vec<String>,
pub proof_state: ClaimProofState,
pub claim_ceiling: ClaimCeiling,
pub constraints: Vec<AxiomConstraint>,
}Expand description
Cortex representation of one AXIOM element.
Fields§
§axiom_label: StringOriginal AXIOM label.
axiom_kind: AxiomElementKindOriginal AXIOM element kind.
cortex_role: CortexClaimRoleCortex role assigned to the element.
statement: StringStatement retained as candidate evidence.
evidence_kind: AxiomEvidenceKindDeclared AXIOM evidence kind.
status: AxiomStatusAXIOM status.
evidence_refs: Vec<String>Evidence refs retained for Cortex admission/review.
capability_refs: Vec<String>Capability refs retained for Cortex admission/review.
residual_risks: Vec<String>Residual risks retained for review.
proof_state: ClaimProofStateProof state implied by AXIOM status and refs.
claim_ceiling: ClaimCeilingEffective claim ceiling after AXIOM evidence and proof-state caps.
constraints: Vec<AxiomConstraint>Constraints generated by the mapping.
Implementations§
Source§impl CortexClaimMapping
impl CortexClaimMapping
Sourcepub fn from_axiom(input: AxiomClaimInput) -> Self
pub fn from_axiom(input: AxiomClaimInput) -> Self
Map one AXIOM element into Cortex shared claim language.
Trait Implementations§
Source§impl Clone for CortexClaimMapping
impl Clone for CortexClaimMapping
Source§fn clone(&self) -> CortexClaimMapping
fn clone(&self) -> CortexClaimMapping
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 CortexClaimMapping
impl Debug for CortexClaimMapping
Source§impl<'de> Deserialize<'de> for CortexClaimMapping
impl<'de> Deserialize<'de> for CortexClaimMapping
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 CortexClaimMapping
impl JsonSchema for CortexClaimMapping
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 CortexClaimMapping
impl PartialEq for CortexClaimMapping
Source§fn eq(&self, other: &CortexClaimMapping) -> bool
fn eq(&self, other: &CortexClaimMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CortexClaimMapping
impl Serialize for CortexClaimMapping
impl Eq for CortexClaimMapping
impl StructuralPartialEq for CortexClaimMapping
Auto Trait Implementations§
impl Freeze for CortexClaimMapping
impl RefUnwindSafe for CortexClaimMapping
impl Send for CortexClaimMapping
impl Sync for CortexClaimMapping
impl Unpin for CortexClaimMapping
impl UnsafeUnpin for CortexClaimMapping
impl UnwindSafe for CortexClaimMapping
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