pub struct NodeKindSpec {
pub label: Option<String>,
pub plural: Option<String>,
pub fill: Option<String>,
pub stroke: Option<String>,
pub external: Option<bool>,
}Expand description
Visual + label semantics of one node kind ("file" / "external" / …).
Keyed by kind in Level::node_kinds.
Fields§
§label: Option<String>§plural: Option<String>§fill: Option<String>§stroke: Option<String>§external: Option<bool>true marks a third-party node (a library); the UI derives “external
edge” from the endpoint kind, not from any edge flag.
Trait Implementations§
Source§impl Clone for NodeKindSpec
impl Clone for NodeKindSpec
Source§fn clone(&self) -> NodeKindSpec
fn clone(&self) -> NodeKindSpec
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 NodeKindSpec
impl Debug for NodeKindSpec
Source§impl<'de> Deserialize<'de> for NodeKindSpec
impl<'de> Deserialize<'de> for NodeKindSpec
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 NodeKindSpec
impl RefUnwindSafe for NodeKindSpec
impl Send for NodeKindSpec
impl Sync for NodeKindSpec
impl Unpin for NodeKindSpec
impl UnsafeUnpin for NodeKindSpec
impl UnwindSafe for NodeKindSpec
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