pub struct LayerSummary {
pub state: TierState,
pub kinds: Vec<KindCount>,
pub objects: Option<usize>,
pub capabilities: Option<usize>,
pub invalid: Option<usize>,
pub refused: Vec<Diagnostic>,
pub degraded: Option<bool>,
}Expand description
What the layer holds, counted per kind, plus the registry the executable composes. Every number here comes from the index — the same objects every other surface serves — and never from counting files that match a pattern: a file that does not parse is not a rule, and a count that says otherwise is a lie a person acts on.
Fields§
§state: TierStateWhere these numbers came from.
kinds: Vec<KindCount>One entry per kind present, sorted by kind.
objects: Option<usize>How many objects the index holds.
capabilities: Option<usize>How many capabilities the registry holds.
invalid: Option<usize>How many files the layer declared that did not become objects.
refused: Vec<Diagnostic>Which ones, and what decided it: the index’s own error diagnostics, each naming the file, the code and the constraint it failed. A count says something is wrong; only this says what and where, and a reader that has the count and not the list has to go looking through a log for the answer the index already produced.
degraded: Option<bool>Whether the layer read cleanly.
Implementations§
Trait Implementations§
Source§impl Clone for LayerSummary
impl Clone for LayerSummary
Source§fn clone(&self) -> LayerSummary
fn clone(&self) -> LayerSummary
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 LayerSummary
impl Debug for LayerSummary
Source§impl<'de> Deserialize<'de> for LayerSummary
impl<'de> Deserialize<'de> for LayerSummary
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 LayerSummary
Source§impl JsonSchema for LayerSummary
impl JsonSchema for LayerSummary
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 moreSource§impl PartialEq for LayerSummary
impl PartialEq for LayerSummary
Source§fn eq(&self, other: &LayerSummary) -> bool
fn eq(&self, other: &LayerSummary) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for LayerSummary
impl Serialize for LayerSummary
impl StructuralPartialEq for LayerSummary
Auto Trait Implementations§
impl Freeze for LayerSummary
impl RefUnwindSafe for LayerSummary
impl Send for LayerSummary
impl Sync for LayerSummary
impl Unpin for LayerSummary
impl UnsafeUnpin for LayerSummary
impl UnwindSafe for LayerSummary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.