pub struct LevelUi {
pub default_sort: Option<String>,
pub sort_metrics: Vec<String>,
pub size_metrics: Vec<String>,
pub card_metrics: Vec<String>,
pub columns: Vec<String>,
pub summary_metrics: Vec<String>,
pub grouping: Option<Grouping>,
}Expand description
UI hints for a level: which metrics to offer as table columns, summary rows, sort/size keys, and the default sort — computed by the orchestrator from the attributes actually present, so the viewer hardcodes none of it.
Fields§
§default_sort: Option<String>§sort_metrics: Vec<String>§size_metrics: Vec<String>§card_metrics: Vec<String>§columns: Vec<String>§summary_metrics: Vec<String>§grouping: Option<Grouping>How the viewer should cluster nodes (group by attribute key, or a named
function). Carried through from the plugin’s level spec, pruned to a
valid attribute. Absent → the viewer uses its default dir grouper.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LevelUi
impl<'de> Deserialize<'de> for LevelUi
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 LevelUi
impl RefUnwindSafe for LevelUi
impl Send for LevelUi
impl Sync for LevelUi
impl Unpin for LevelUi
impl UnsafeUnpin for LevelUi
impl UnwindSafe for LevelUi
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