Skip to main content

View

Struct View 

Source
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: String

Always sail-proof-health.

§version: u32

Independent health-view contract version, currently one.

§job_id: Option<String>

Retained job when read from the service; absent for a result file.

§run_id: String

Original producing invocation.

§workspace: String

Original workspace.

§context_sha256: String

Original full configuration identity, for interpreting comparisons.

§input_revision: String

Original declared input revision.

§currentness: Currentness

Original result currentness; historical evidence stays historical.

§exit_code: Option<i32>

Original project process exit; view generation never replaces it.

§total_functions: u64

Every requested-target function, including entries omitted by the bound.

§omitted: u64

Entries 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

Source

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.

Trait Implementations§

Source§

impl Clone for View

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for View

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for View

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for View

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for View

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for View

Auto Trait Implementations§

§

impl Forget for View

§

impl Freeze for View

§

impl Move for View

§

impl RefUnwindSafe for View

§

impl Send for View
where RawVecInner: Send, BoxRaw<View>: Send,

§

impl Sync for View
where RawVecInner: Sync, BoxRaw<View>: Sync,

§

impl Unpin for View
where *const u8 is !null: Unpin, Box<View>: Unpin,

§

impl UnsafeUnpin for View

§

impl UnwindSafe for View
where RawVecInner: UnwindSafe, BoxRaw<View>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.