pub struct Port {
pub id: String,
pub label: String,
pub direction: PortDirection,
pub port_type: String,
pub color: Option<String>,
}Expand description
A typed input or output port on a node. Ports define connection points — edges connect from an output port to an input port.
Fields§
§id: StringUnique identifier within the node (e.g., “message”, “response”).
label: StringDisplay label.
direction: PortDirectionWhether this is an input or output port.
port_type: StringType tag for connection compatibility (e.g., “text”, “json”, “tool_call”). Only ports with matching types can be connected.
color: Option<String>Optional color override for the port dot.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Port
impl<'de> Deserialize<'de> for Port
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
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnsafeUnpin for Port
impl UnwindSafe for Port
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