pub struct NodeKind {
pub id: KindId,
pub name: String,
}Expand description
节点类型(如「人物」「机构」「概念」)。只存名称;颜色映射在视图层按类型序号取 arc-tokens 调色板。
Fields§
§id: KindId§name: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for NodeKind
impl<'de> Deserialize<'de> for NodeKind
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
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Forget for NodeKind
impl Freeze for NodeKind
impl Move for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKindwhere
RawVecInner: Send,
impl Sync for NodeKindwhere
RawVecInner: Sync,
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKindwhere
RawVecInner: UnwindSafe,
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