pub struct Routing { /* private fields */ }Expand description
A container for workflow connections.
Routing is one of the six container types. It wraps a child node with connection capabilities for workflow/node-based tools.
§Example
ⓘ
use paramdef::container::{Routing, Object};
use paramdef::types::leaf::{Text, Number};
let input = Routing::builder("input_data")
.label("Data Input")
.connection_label("Data In")
.connection_required(true)
.max_connections(1)
.child(Object::builder("payload")
.field("id", Text::builder("id").build())
.field("value", Number::float("value").build())
.build())
.build();Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Routing
impl !RefUnwindSafe for Routing
impl Send for Routing
impl Sync for Routing
impl Unpin for Routing
impl !UnwindSafe for Routing
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