pub struct ExplanationEvidence {Show 16 fields
pub support: Option<usize>,
pub support_omitted: bool,
pub class: EvidenceClass,
pub ordinal: u32,
pub outline: OutlineTrail,
pub block_path: Option<String>,
pub source: Option<SourceSpan>,
pub bases: Vec<EvidenceBasis>,
pub previews: Vec<ExplanationPreview>,
pub previews_omitted: bool,
pub entry: Option<ExplanationEntry>,
pub content: Option<ExplanationContent>,
pub details_omitted: bool,
pub match_details_omitted: bool,
pub name_bindings_omitted: bool,
pub content_omitted: bool,
}Expand description
One independently addressable evidence owner.
Fields§
§support: Option<usize>Response-local declaration context; in scope results the pool belongs to this evidence’s document report. This is not an alias edge.
support_omitted: boolA known declaration context could not fit the copy budget.
class: EvidenceClassExclusive category determined before pagination or content copying.
ordinal: u32Zero-based ordinal before result pagination.
outline: OutlineTrailReal owner/containing section; prose is never assigned a synthetic entry.
block_path: Option<String>IR block/item/cell coordinate for ordinary supporting content.
source: Option<SourceSpan>Original source coordinates, when known.
bases: Vec<EvidenceBasis>All retained reasons for this owner’s inclusion.
previews: Vec<ExplanationPreview>At most two representative matched blocks, in their source order.
previews_omitted: boolA representative match window did not fit the remaining copy budget.
entry: Option<ExplanationEntry>Semantic metadata, absent for prose or when its copy exceeds the budget.
content: Option<ExplanationContent>Original owner body, omitted atomically rather than silently clipped. Prose retains only its matched block, never an invented section/entry.
details_omitted: boolOriginal forms/facts were too large for the remaining copy budget.
match_details_omitted: boolSome actual Name/Form records or applicable matched positions were omitted.
name_bindings_omitted: boolSome ordinary display bindings applicable to returned targets were omitted.
content_omitted: boolOriginal body was too large for the remaining copy budget.
Implementations§
Source§impl ExplanationEvidence
impl ExplanationEvidence
Sourcepub fn source_reference(&self, pool: &[ExplanationSupport]) -> Option<usize>
pub fn source_reference(&self, pool: &[ExplanationSupport]) -> Option<usize>
Validated reference to returned original source, regardless of whether it also carries a declaration-group relationship.
Validated physical-entry reference, distinct from a group relationship.
Sourcepub fn covered_by_support(&self, pool: &[ExplanationSupport]) -> bool
pub fn covered_by_support(&self, pool: &[ExplanationSupport]) -> bool
Whether a shared source fragment covers this exact owner and its forms. Invalid references must never hide separately returned metadata.
Source§impl ExplanationEvidence
impl ExplanationEvidence
Sourcepub const fn has_omitted_content(&self) -> bool
pub const fn has_omitted_content(&self) -> bool
Whether any selected facts, representative preview or complete body was omitted by the shared copy budget (not ordinary window clipping).
Trait Implementations§
Source§impl Clone for ExplanationEvidence
impl Clone for ExplanationEvidence
Source§fn clone(&self) -> ExplanationEvidence
fn clone(&self) -> ExplanationEvidence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExplanationEvidence
impl Debug for ExplanationEvidence
Source§impl<'de> Deserialize<'de> for ExplanationEvidence
impl<'de> Deserialize<'de> for ExplanationEvidence
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>,
impl Eq for ExplanationEvidence
Source§impl JsonSchema for ExplanationEvidence
impl JsonSchema for ExplanationEvidence
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more