pub struct CortexAxiomConstraintEnvelopeV1 {Show 13 fields
pub schema_version: u16,
pub envelope_type: String,
pub context_pack_id: ContextPackId,
pub proof_state: ProofClosureReport,
pub truth_ceiling: ClaimCeiling,
pub semantic_trust: SemanticTrustClass,
pub provenance_class: ProvenanceClass,
pub contradiction_state: BoundaryContradictionState,
pub quarantine_state: BoundaryQuarantineState,
pub redaction_state: BoundaryRedactionState,
pub allowed_claim_language: Vec<AllowedClaimLanguage>,
pub forbidden_uses: Vec<ForbiddenBoundaryUse>,
pub constraints: Vec<AxiomConstraint>,
}Expand description
Cortex -> pai-axiom constraint envelope.
Fields§
§schema_version: u16Schema version.
envelope_type: StringStable envelope type string.
context_pack_id: ContextPackIdContext pack being constrained.
proof_state: ProofClosureReportProof closure state and failing edges for the pack/use.
truth_ceiling: ClaimCeilingMaximum claim strength permitted.
semantic_trust: SemanticTrustClassSemantic trust class for the selected context.
provenance_class: ProvenanceClassWeakest provenance class represented in selected context.
contradiction_state: BoundaryContradictionStateContradiction posture.
quarantine_state: BoundaryQuarantineStateQuarantine posture.
redaction_state: BoundaryRedactionStateRedaction posture.
allowed_claim_language: Vec<AllowedClaimLanguage>Claim language the receiver may use.
forbidden_uses: Vec<ForbiddenBoundaryUse>Authority-bearing uses forbidden by this envelope.
constraints: Vec<AxiomConstraint>Detailed AXIOM constraints already understood by existing exports.
Implementations§
Source§impl CortexAxiomConstraintEnvelopeV1
impl CortexAxiomConstraintEnvelopeV1
Sourcepub fn new(
context_pack_id: ContextPackId,
proof_state: ProofClosureReport,
truth_ceiling: ClaimCeiling,
semantic_trust: SemanticTrustClass,
provenance_class: ProvenanceClass,
) -> Self
pub fn new( context_pack_id: ContextPackId, proof_state: ProofClosureReport, truth_ceiling: ClaimCeiling, semantic_trust: SemanticTrustClass, provenance_class: ProvenanceClass, ) -> Self
Construct an envelope with the stable v1 type string.
Trait Implementations§
Source§impl Clone for CortexAxiomConstraintEnvelopeV1
impl Clone for CortexAxiomConstraintEnvelopeV1
Source§fn clone(&self) -> CortexAxiomConstraintEnvelopeV1
fn clone(&self) -> CortexAxiomConstraintEnvelopeV1
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 CortexAxiomConstraintEnvelopeV1
impl<'de> Deserialize<'de> for CortexAxiomConstraintEnvelopeV1
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 CortexAxiomConstraintEnvelopeV1
impl JsonSchema for CortexAxiomConstraintEnvelopeV1
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 CortexAxiomConstraintEnvelopeV1
impl PartialEq for CortexAxiomConstraintEnvelopeV1
Source§fn eq(&self, other: &CortexAxiomConstraintEnvelopeV1) -> bool
fn eq(&self, other: &CortexAxiomConstraintEnvelopeV1) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CortexAxiomConstraintEnvelopeV1
impl StructuralPartialEq for CortexAxiomConstraintEnvelopeV1
Auto Trait Implementations§
impl Freeze for CortexAxiomConstraintEnvelopeV1
impl RefUnwindSafe for CortexAxiomConstraintEnvelopeV1
impl Send for CortexAxiomConstraintEnvelopeV1
impl Sync for CortexAxiomConstraintEnvelopeV1
impl Unpin for CortexAxiomConstraintEnvelopeV1
impl UnsafeUnpin for CortexAxiomConstraintEnvelopeV1
impl UnwindSafe for CortexAxiomConstraintEnvelopeV1
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