pub struct NodeDescriptor {
pub node_type: String,
pub display_name: String,
pub category: String,
pub summary: String,
pub default_data: Value,
pub fields: Vec<NodeFieldDescriptor>,
}Expand description
Static capability descriptor for a registered node type.
Fields§
§node_type: StringStable type string used in flow definitions.
display_name: StringHuman-friendly display name suitable for UI lists.
category: StringShort category label for grouping similar node types.
summary: StringSingle-sentence summary of what the node does.
default_data: ValueSuggested default config payload for editor-side node creation.
fields: Vec<NodeFieldDescriptor>Optional field hints for editors and capability discovery UIs.
Trait Implementations§
Source§impl Clone for NodeDescriptor
impl Clone for NodeDescriptor
Source§fn clone(&self) -> NodeDescriptor
fn clone(&self) -> NodeDescriptor
Returns a duplicate of the value. Read more
1.0.0 · 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 NodeDescriptor
impl Debug for NodeDescriptor
Source§impl<'de> Deserialize<'de> for NodeDescriptor
impl<'de> Deserialize<'de> for NodeDescriptor
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
Source§impl PartialEq for NodeDescriptor
impl PartialEq for NodeDescriptor
Source§impl Serialize for NodeDescriptor
impl Serialize for NodeDescriptor
impl Eq for NodeDescriptor
impl StructuralPartialEq for NodeDescriptor
Auto Trait Implementations§
impl Freeze for NodeDescriptor
impl RefUnwindSafe for NodeDescriptor
impl Send for NodeDescriptor
impl Sync for NodeDescriptor
impl Unpin for NodeDescriptor
impl UnsafeUnpin for NodeDescriptor
impl UnwindSafe for NodeDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.