Skip to main content

NodeCatalogEntry

Struct NodeCatalogEntry 

Source
pub struct NodeCatalogEntry {
Show 21 fields pub slug: String, pub version: String, pub label: String, pub description: String, pub tags: Vec<String>, pub icon: String, pub sort_key: i32, pub node_type: String, pub canvas_type: String, pub renderer: String, pub inspector: String, pub adapter: Option<String>, pub action_id: Option<String>, pub defaults: Value, pub schema: Value, pub command_tree: Option<Value>, pub settings: Vec<SettingsRequirement>, pub runtime_bindings: RuntimeBindings, pub lowering: LoweringHint, pub cli_tool: Option<CliTool>, pub service_integration: Option<ServiceIntegration>,
}
Expand description

One catalog entry as authored in node_catalog.json. The shape is also what we return from the Tauri layer (rename_all = camelCase) so the frontend can consume the same JSON the catalog ships with.

Fields§

§slug: String§version: String§label: String§description: String§tags: Vec<String>§icon: String§sort_key: i32

Stable sort key for the palette. Smaller = earlier. Catalog entries without a key sort last.

§node_type: String

Node type - one of action | ai | agentic | utility | service.

§canvas_type: String

ReactFlow node-type key the canvas mounts. Catalog entries that reuse an existing bespoke canvas type name it here (e.g. action, zoweCommand); generic ones use "catalog".

§renderer: String

React component name for the canvas body. Reuses an existing component name (e.g. "ZoweCommandNode") or "Generic" for the catalog-driven renderer.

§inspector: String

Inspector sub-form name (same convention as renderer).

§adapter: Option<String>

Required when nodeType == "action". Identifies the adapter that dispatches this node at run time.

§action_id: Option<String>§defaults: Value

Default values stamped onto node.data when a fresh node is dropped on the canvas. Arbitrary JSON; the renderer reads what it needs.

§schema: Value

JSON Schema (Draft 2020-12 subset: object/properties/required/enum/ pattern/type/default/title) describing the node’s data shape. Drives the generic inspector form and the pre-run validator. Carried as serde_json::Value so the catalog ships any well-formed schema without the Rust type system having to mirror every keyword.

§command_tree: Option<Value>

Embedded reference data - the parsed Zowe command tree on the zowe.cli-tool entry; the GitHub command catalog on github.cli-tool; absent on every other entry.

§settings: Vec<SettingsRequirement>

Global-settings dependencies the inspector surfaces as a banner and the pre-run gate refuses on when missing.

§runtime_bindings: RuntimeBindings

Canvas-card runtime extras the generic renderer opts into.

§lowering: LoweringHint

DSL adapter/actionId stamped at lowering time, replacing per-kind hardcoded values. Both fields are optional so AI / utility entries (which don’t carry an adapter) just leave them null.

§cli_tool: Option<CliTool>

CLI tool this node shells out to. Present only on cli-tool action entries (zowe.cli-tool / github.cli-tool); absent on every other kind. Drives the Node Hub’s “is this CLI installed, and does its version meet the minimum?” check.

§service_integration: Option<ServiceIntegration>

Declarative API integration for service nodes. Present only on service entries; absent on every other node type. The generic service adapter reads it to call the external API at run time. The concrete service - its base URL, auth, and operations - is data authored in the catalog, never code, so the adapter stays vendor-neutral.

Trait Implementations§

Source§

impl Clone for NodeCatalogEntry

Source§

fn clone(&self) -> NodeCatalogEntry

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeCatalogEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for NodeCatalogEntry

Source§

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 Serialize for NodeCatalogEntry

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,