Skip to main content

ContractSchemaSignals

Struct ContractSchemaSignals 

Source
pub struct ContractSchemaSignals { /* private fields */ }
Expand description

Contract-derived facts consumed by core values-schema generation.

This is the typed boundary between static template interpretation and JSON Schema lowering. Optional post-passes can ask for their own projections, but core schema generation should consume this artifact rather than re-reading raw contract claims.

Implementations§

Source§

impl ContractSchemaSignals

Source

pub fn new( schema_evidence_by_value_path: BTreeMap<String, ContractPathSchemaEvidence>, terminal_clauses: Vec<Vec<ConditionalGuard>>, ) -> Self

Builds a stable signal set from path evidence and terminal clauses.

Source

pub fn with_values_default_sources( self, sources: impl IntoIterator<Item = ValuesDefaultSource>, ) -> Self

Attaches chart subtrees that supply runtime defaults to effective values paths.

Source

pub fn values_default_sources(&self) -> &BTreeSet<ValuesDefaultSource>

Default subtrees applied to effective values before templates consume them.

Source

pub fn with_root_overlay_fail_implications( self, prefixes: impl IntoIterator<Item = String>, ) -> Self

Projects fail-grade contracts on effective-root paths onto their prefixed spellings for every in-place root overlay (mustMergeOverwrite $.Values (index $.Values "pilot")): a member the user writes under the prefix overwrites its effective-root twin before any consumer reads it, so the same abort-grade requirements bind the prefixed path (istiod’s pilot.env: "oops" aborts exactly like env: "oops"). Guards about the subject path or its descendants move to the prefixed spelling; foreign guard paths keep their root spellings — a bounded reading that assumes cross-path conditions are supplied at the root, not through the same overlay.

Source

pub fn with_values_program_wrappers( self, wrappers: impl IntoIterator<Item = ValuesProgramWrapper>, ) -> Self

Attaches chart-authored program-wrapper conventions.

Source

pub fn values_program_wrappers(&self) -> &BTreeSet<ValuesProgramWrapper>

Program-wrapper conventions the chart’s engine applies to its values.

Source

pub fn with_values_program_wrapper_exclusions( self, paths: impl IntoIterator<Item = String>, ) -> Self

Attaches paths excluded from wrapper alternatives (pre-rewrite strict consumers).

Source

pub fn values_program_wrapper_exclusions(&self) -> &BTreeSet<String>

Values paths whose nodes must not gain a wrapper alternative.

Source

pub fn direct_ranged_value_paths(&self) -> &BTreeSet<String>

Paths the chart ranges DIRECTLY: their runtime iterable domain is wider than any declared shape, so ancestor subtree schemas must not shadow their own resolutions.

Source

pub fn terminal_clauses(&self) -> &[Vec<ConditionalGuard>]

Terminating validator formulas: no valid values document satisfies all guards of one clause.

Source

pub fn schema_evidence_by_value_path( &self, ) -> &BTreeMap<String, ContractPathSchemaEvidence>

Returns schema-lowering evidence indexed by canonical values path.

Source

pub fn referenced_value_paths(&self) -> &BTreeSet<String>

Values paths the contract directly referenced, in stable order.

Source

pub fn pruned_parent_value_paths(&self) -> &BTreeSet<String>

Non-fragment parent paths whose referenced descendants own their own schema evidence, so parent-level defaults must not restate them.

Source

pub fn evidence_for( &self, value_path: &str, ) -> Option<&ContractPathSchemaEvidence>

Returns schema evidence for one canonical values path.

Trait Implementations§

Source§

impl Clone for ContractSchemaSignals

Source§

fn clone(&self) -> ContractSchemaSignals

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ContractSchemaSignals

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ContractSchemaSignals

Source§

fn default() -> ContractSchemaSignals

Returns the “default value” for a type. Read more
Source§

impl Eq for ContractSchemaSignals

Source§

impl PartialEq for ContractSchemaSignals

Source§

fn eq(&self, other: &ContractSchemaSignals) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ContractSchemaSignals

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.