pub enum Provenance {
Extracted,
Resolved,
Observed,
Declared,
Inferred,
Stale,
}Expand description
Evidence class of a fact, per docs/SYSTEM_IR_SCHEMA.md §5.
Variants§
Extracted
Direct syntax/configuration evidence.
Resolved
Resolved through compiler/LSP/type/binding resolution.
Observed
Runtime evidence.
Declared
Declared architectural intent.
Inferred
Heuristic/LLM claim.
Stale
Evidence no longer valid for the active revision.
Implementations§
Source§impl Provenance
impl Provenance
pub fn as_str(&self) -> &'static str
Sourcepub fn default_confidence(&self) -> f64
pub fn default_confidence(&self) -> f64
Default confidence per docs/SYSTEM_IR_SCHEMA.md §9.
Sourcepub fn is_trusted(&self) -> bool
pub fn is_trusted(&self) -> bool
STALE facts may never enter trusted context (only as warnings).
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
impl Copy for Provenance
Source§impl Debug for Provenance
impl Debug for Provenance
Source§impl<'de> Deserialize<'de> for Provenance
impl<'de> Deserialize<'de> for Provenance
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 Provenance
Source§impl Hash for Provenance
impl Hash for Provenance
Source§impl JsonSchema for Provenance
impl JsonSchema for Provenance
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 Provenance
impl PartialEq for Provenance
Source§impl Serialize for Provenance
impl Serialize for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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