pub struct IndexView {
pub fingerprint: String,
pub state: String,
pub layer_schema: String,
pub sections: BTreeMap<String, String>,
pub by_kind: BTreeMap<String, usize>,
pub diagnostics: BTreeMap<String, usize>,
pub objects: Vec<ObjectView>,
}Expand description
The index as the site shows it.
Fields§
§fingerprint: StringHash of every object’s path and content.
state: Stringok, degraded, … as the index reports itself.
layer_schema: StringLayer schema, e.g. ai-repository/v1.
sections: BTreeMap<String, String>Manifest sections, name to repository-relative path.
by_kind: BTreeMap<String, usize>How many objects of each kind.
diagnostics: BTreeMap<String, usize>Diagnostics counted by severity.
objects: Vec<ObjectView>Every object, by URI.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexView
impl RefUnwindSafe for IndexView
impl Send for IndexView
impl Sync for IndexView
impl Unpin for IndexView
impl UnsafeUnpin for IndexView
impl UnwindSafe for IndexView
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
Mutably borrows from an owned value. Read more