pub struct Level {
pub name: String,
pub edge_kinds: BTreeMap<String, EdgeKindSpec>,
pub node_attributes: BTreeMap<String, AttributeSpec>,
pub edge_attributes: BTreeMap<String, AttributeSpec>,
pub attribute_groups: BTreeMap<String, AttributeGroup>,
pub node_kinds: BTreeMap<String, NodeKindSpec>,
pub cycle_kinds: BTreeMap<String, CycleKindSpec>,
pub grouping: Option<Grouping>,
}Expand description
An analysis level the plugin can produce, with the semantics needed to score
and draw it. The orchestrator merges in centrally-computed attribute specs
and the computed ui block before writing the snapshot.
Fields§
§name: String§edge_kinds: BTreeMap<String, EdgeKindSpec>§node_attributes: BTreeMap<String, AttributeSpec>§edge_attributes: BTreeMap<String, AttributeSpec>§attribute_groups: BTreeMap<String, AttributeGroup>§node_kinds: BTreeMap<String, NodeKindSpec>Node-kind vocabulary (label/colour/external). Plugins seed it from
crate::default_node_kinds and may customize.
cycle_kinds: BTreeMap<String, CycleKindSpec>Cycle-kind vocabulary. Plugins seed it from crate::default_cycle_kinds.
grouping: Option<Grouping>How the viewer should cluster nodes (defaults to dir when absent).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Level
impl<'de> Deserialize<'de> for Level
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 Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
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