pub struct NodeKindViewDescriptor {Show 16 fields
pub kind: NodeKindKey,
pub renderer_key: String,
pub title: String,
pub category: Vec<String>,
pub keywords: Vec<String>,
pub default_size: Option<CanvasSize>,
pub layout_budget: NodeSurfaceLayoutBudget,
pub ports: Vec<PortDecl>,
pub surface_slots: Vec<NodeSurfaceSlotDescriptor>,
pub repeatable_collections: Vec<NodeRepeatableCollectionDescriptor>,
pub actions: Vec<NodeActionDescriptor>,
pub menus: Vec<MenuDescriptor>,
pub inspectors: Vec<InspectorDescriptor>,
pub blackboards: Vec<BlackboardDescriptor>,
pub chrome: Vec<NodeChromeDescriptor>,
pub default_data: Value,
}Expand description
Renderer-neutral node-kind descriptor for adapter palettes and renderer lookup.
Fields§
§kind: NodeKindKeyCanonical kind key.
renderer_key: StringAdapter-owned renderer lookup key.
title: StringUI-facing title.
category: Vec<String>Category path for create-node search/palette grouping.
keywords: Vec<String>Search keywords.
default_size: Option<CanvasSize>Default logical node size for initial adapter layout before measurement.
layout_budget: NodeSurfaceLayoutBudgetSemantic readable-surface budget for adapter-local node internals.
ports: Vec<PortDecl>Declared ports.
surface_slots: Vec<NodeSurfaceSlotDescriptor>Renderer-neutral semantic slots for rich adapter node surfaces.
repeatable_collections: Vec<NodeRepeatableCollectionDescriptor>Renderer-neutral dynamic row/list descriptors for node-local authoring surfaces.
actions: Vec<NodeActionDescriptor>Renderer-neutral action descriptors for node-local authoring surfaces.
Renderer-neutral menu descriptors. Adapters own popup widgets and state.
inspectors: Vec<InspectorDescriptor>Renderer-neutral inspector descriptors. Adapters own panel widgets and focus.
blackboards: Vec<BlackboardDescriptor>Graph-level property lists exposed as adapter-local blackboard panels.
chrome: Vec<NodeChromeDescriptor>Renderer-neutral semantic chrome around rich adapter node surfaces.
default_data: ValueDefault node payload.
Implementations§
Source§impl NodeKindViewDescriptor
impl NodeKindViewDescriptor
pub fn port_decl(&self, key: impl AsRef<str>) -> Option<&PortDecl>
pub fn ports_by_anchor(&self, anchor: impl AsRef<str>) -> Vec<&PortDecl>
pub fn port_decl_by_anchor(&self, anchor: impl AsRef<str>) -> Option<&PortDecl>
pub fn surface_slot( &self, key: impl AsRef<str>, ) -> Option<&NodeSurfaceSlotDescriptor>
pub fn surface_slots_of_kind( &self, kind: NodeSurfaceSlotKind, ) -> Vec<&NodeSurfaceSlotDescriptor>
pub fn surface_slots_by_anchor( &self, anchor: impl AsRef<str>, ) -> Vec<&NodeSurfaceSlotDescriptor>
pub fn surface_slot_by_anchor( &self, anchor: impl AsRef<str>, ) -> Option<&NodeSurfaceSlotDescriptor>
pub fn repeatable_collection( &self, key: impl AsRef<str>, ) -> Option<&NodeRepeatableCollectionDescriptor>
pub fn repeatable_items_projection( &self, node_data: &Value, collection_key: impl AsRef<str>, ) -> Vec<NodeRepeatableItemProjection>
pub fn action(&self, key: impl AsRef<str>) -> Option<&NodeActionDescriptor>
pub fn inspector(&self, key: impl AsRef<str>) -> Option<&InspectorDescriptor>
pub fn blackboard(&self, key: impl AsRef<str>) -> Option<&BlackboardDescriptor>
pub fn surface_slots_projection( &self, node_data: &Value, layout_hints: Option<&NodeKitLayoutHints>, zoom: f32, ) -> Vec<NodeSurfaceSlotProjection>
Trait Implementations§
Source§impl Clone for NodeKindViewDescriptor
impl Clone for NodeKindViewDescriptor
Source§fn clone(&self) -> NodeKindViewDescriptor
fn clone(&self) -> NodeKindViewDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NodeKindViewDescriptor
impl Debug for NodeKindViewDescriptor
Source§impl<'de> Deserialize<'de> for NodeKindViewDescriptor
impl<'de> Deserialize<'de> for NodeKindViewDescriptor
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>,
Source§impl PartialEq for NodeKindViewDescriptor
impl PartialEq for NodeKindViewDescriptor
Source§fn eq(&self, other: &NodeKindViewDescriptor) -> bool
fn eq(&self, other: &NodeKindViewDescriptor) -> bool
self and other values to be equal, and is used by ==.