pub struct View {Show 15 fields
pub kind: String,
pub version: u32,
pub job_id: Option<String>,
pub run_id: String,
pub workspace: String,
pub context_sha256: String,
pub input_revision: String,
pub currentness: Currentness,
pub exit_code: Option<i32>,
pub total_functions: u64,
pub omitted: u64,
pub entries: Vec<Entry>,
pub error: Option<ErrorInfo>,
pub baseline_name: Option<String>,
pub baseline: Option<Box<Self>>,
}Expand description
Bounded read-only health view, shared by CLI, JSON and MCP.
Fields§
§kind: StringAlways sail-proof-health.
version: u32Independent health-view contract version, currently one.
job_id: Option<String>Retained job when read from the service; absent for a result file.
run_id: StringOriginal producing invocation.
workspace: StringOriginal workspace.
context_sha256: StringOriginal full configuration identity, for interpreting comparisons.
input_revision: StringOriginal declared input revision.
currentness: CurrentnessOriginal result currentness; historical evidence stays historical.
exit_code: Option<i32>Original project process exit; view generation never replaces it.
total_functions: u64Every requested-target function, including entries omitted by the bound.
omitted: u64Entries omitted from this bounded view, never silently dropped.
entries: Vec<Entry>Ranked by exhaustion, near-limit checks, then exact finite consumption.
error: Option<ErrorInfo>Original infrastructure/setup failure, when present.
baseline_name: Option<String>Explicit immutable baseline name when one was requested.
baseline: Option<Box<Self>>Separately labelled earlier evidence, never merged into current answers.
Implementations§
Source§impl View
impl View
Sourcepub fn of(result: &ProjectResult, limit: usize) -> Result<Self, String>
pub fn of(result: &ProjectResult, limit: usize) -> Result<Self, String>
Reads existing per-check evidence; no solver is started and no verdict or provisional establishment is changed. Older v2 reports need no new measurement: their obligations supply only what was actually retained.
§Errors
An unsupported document, duplicate identity or limit outside 1..1000.