pub struct Port {
pub node: NodeId,
pub key: PortKey,
pub dir: PortDirection,
pub kind: PortKind,
pub capacity: PortCapacity,
pub connectable: Option<bool>,
pub connectable_start: Option<bool>,
pub connectable_end: Option<bool>,
pub ty: Option<TypeDesc>,
pub data: Value,
}Expand description
Port instance.
Fields§
§node: NodeIdOwning node.
key: PortKeySchema key for stable migrations.
dir: PortDirectionPort direction.
kind: PortKindPort kind.
capacity: PortCapacityCapacity rule.
connectable: Option<bool>Whether this port can be used for creating/accepting connections via editor interactions.
This mirrors XyFlow handle-level isConnectable. When omitted, the owning node’s
Node.connectable / global NodeGraphInteractionState.nodes_connectable decides.
connectable_start: Option<bool>Dictates whether a connection can start from this port.
This mirrors XyFlow handle-level isConnectableStart. When omitted, the port is treated as
start-connectable (subject to connectable).
connectable_end: Option<bool>Dictates whether a connection can end on this port.
This mirrors XyFlow handle-level isConnectableEnd. When omitted, the port is treated as
end-connectable (subject to connectable).
ty: Option<TypeDesc>Optional type descriptor.
Profiles may choose to infer or override this via concretization.
data: ValueOpaque port payload (domain-owned).