pub struct InventoryHint {
pub display: Vec<DisplayField>,
pub summary: Option<Vec<DisplayField>>,
}Expand description
Manifest sub-section: how the SPA should render the inventory
facts this job produces. Each field name (field) is a top-level
key in the stdout JSON, e.g. hostname, ram_gb.
Two render modes:
display— vertical “field / value” per PC, used by the/inventory?pc=<id>detail view. ALL columns the operator wants visible on the detail page.summary— horizontal table across the fleet (row = PC, column = field) on/inventory. Optional; when omitted the SPA falls back todisplay, but operators usually want a trimmer “hostname / OS / CPU / RAM” set for the fleet view.
Fields§
§display: Vec<DisplayField>Detail-view columns, in order.
summary: Option<Vec<DisplayField>>Optional fleet-list columns (row = PC). Defaults to display
when omitted, but operators usually pick a 3-5 column subset.
Trait Implementations§
Source§impl Clone for InventoryHint
impl Clone for InventoryHint
Source§fn clone(&self) -> InventoryHint
fn clone(&self) -> InventoryHint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InventoryHint
impl Debug for InventoryHint
Source§impl<'de> Deserialize<'de> for InventoryHint
impl<'de> Deserialize<'de> for InventoryHint
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InventoryHint
impl RefUnwindSafe for InventoryHint
impl Send for InventoryHint
impl Sync for InventoryHint
impl Unpin for InventoryHint
impl UnsafeUnpin for InventoryHint
impl UnwindSafe for InventoryHint
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