pub struct SourceObservation {
pub language: SourceLanguage,
pub framework: SourceFramework,
pub role: SourceRole,
pub method: Option<String>,
pub path: Option<String>,
pub symbol_name: Option<String>,
pub related_symbol: Option<String>,
pub related_path: Option<String>,
pub lines: SourceLineRange,
pub status: SourceEpistemicStatus,
pub confidence: f32,
pub warnings: Vec<SourceWarning>,
}Expand description
Conversion-ready source evidence for an HTTP boundary, implementation, or test case.
Confirmed provider observations have enough method, path, and symbol evidence to construct an
HTTP provider plus an implementation anchor. Confirmed consumers have exact method/path
evidence. Test observations intentionally omit method/path; downstream correlation can join
them to consumer observations with the same symbol_name.
Fields§
§language: SourceLanguageLanguage in which the evidence was found.
framework: SourceFrameworkFramework whose syntax was recognized.
role: SourceRoleProvider, consumer, or test role.
method: Option<String>Canonical upper-case HTTP method when exactly known.
path: Option<String>Canonical normalized HTTP path when exactly known.
symbol_name: Option<String>Enclosing implementation symbol or test name when known.
Related model symbol for declarations such as Factory Boy Meta.model.
Repository-relative module path that declares related_symbol, when statically imported.
lines: SourceLineRangeInclusive source range containing the direct evidence.
status: SourceEpistemicStatusEpistemic state of this observation.
confidence: f32Normalized confidence in the inclusive range from zero to one.
warnings: Vec<SourceWarning>Deterministically ordered extraction limitations.
Trait Implementations§
Source§impl Clone for SourceObservation
impl Clone for SourceObservation
Source§fn clone(&self) -> SourceObservation
fn clone(&self) -> SourceObservation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more