pub struct SourceObservation {Show 17 fields
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 authority: Option<String>,
pub router: Option<SymbolRef>,
pub mount_parent: Option<SymbolRef>,
pub url: Option<UrlTemplate>,
pub call: Option<CallSite>,
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.
Lower-case host[:port] named by an absolute consumer URL.
router: Option<SymbolRef>Router a provider route is registered on, the router mounted by a mount observation, or the parameter through which a consumer receives its client.
mount_parent: Option<SymbolRef>Router receiving a mount observation; None mounts at the application root.
url: Option<UrlTemplate>Consumer URL that depends on parameters of the enclosing function.
call: Option<CallSite>Called function and arguments of a call observation.
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.