pub struct LevelUi {
pub default_sort: Option<String>,
pub sort: Vec<String>,
pub size: Vec<String>,
pub filter: Vec<String>,
pub card: Vec<String>,
pub columns: Vec<String>,
pub summary: 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: Vec<String>§size: Vec<String>Metrics the SVG map offers as circle-size modes, beyond the built-in
loc / hk (from a [report] size = … override). Default empty.
filter: Vec<String>Metrics the SVG map offers as on/off node filters (keep only nodes where
the metric has signal), beyond the built-in cycle (from [report] filter).
card: Vec<String>§columns: Vec<String>§summary: 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> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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