pub struct Node {
pub id: NodeId,
pub component: ComponentRef,
pub input: InputMapping,
pub output: OutputMapping,
pub err_map: Option<OutputMapping>,
pub routing: Routing,
pub telemetry: TelemetryHints,
}Expand description
Flow node representation.
Fields§
§id: NodeIdNode identifier.
component: ComponentRefComponent binding referenced by the node.
input: InputMappingComponent input mapping configuration.
output: OutputMappingComponent output mapping configuration.
err_map: Option<OutputMapping>Optional error mapping configuration.
routing: RoutingRouting behaviour after this node.
telemetry: TelemetryHintsOptional telemetry hints for this node.
Implementations§
Source§impl Node
impl Node
Sourcepub fn in_map(&self) -> &InputMapping
pub fn in_map(&self) -> &InputMapping
Returns the canonical input mapping surface.
Sourcepub fn out_map(&self) -> &OutputMapping
pub fn out_map(&self) -> &OutputMapping
Returns the canonical output mapping surface.
Sourcepub fn err_map(&self) -> Option<&OutputMapping>
pub fn err_map(&self) -> Option<&OutputMapping>
Returns the canonical error mapping surface when configured.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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