pub struct WorkflowDagEdge { /* private fields */ }Expand description
One directed connection between workflow DAG nodes.
Implementations§
Source§impl WorkflowDagEdge
impl WorkflowDagEdge
Sourcepub fn new(
id: impl Into<String>,
source: impl Into<String>,
target: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, source: impl Into<String>, target: impl Into<String>, ) -> Self
Construct a directed edge between two node identities.
Sourcepub fn with_source_handle(self, source_handle: impl Into<String>) -> Self
pub fn with_source_handle(self, source_handle: impl Into<String>) -> Self
Sets the source connector handle used by the authoring canvas.
Sourcepub fn with_target_handle(self, target_handle: impl Into<String>) -> Self
pub fn with_target_handle(self, target_handle: impl Into<String>) -> Self
Sets the target connector handle used by the authoring canvas.
Sourcepub fn source_handle(&self) -> Option<&str>
pub fn source_handle(&self) -> Option<&str>
Returns the optional source connector handle.
Sourcepub fn target_handle(&self) -> Option<&str>
pub fn target_handle(&self) -> Option<&str>
Returns the optional target connector handle.
Sourcepub fn presentation(&self) -> &BTreeMap<String, Value>
pub fn presentation(&self) -> &BTreeMap<String, Value>
Returns presentation-only fields preserved during round trips.
Trait Implementations§
Source§impl Clone for WorkflowDagEdge
impl Clone for WorkflowDagEdge
Source§fn clone(&self) -> WorkflowDagEdge
fn clone(&self) -> WorkflowDagEdge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowDagEdge
impl Debug for WorkflowDagEdge
Source§impl<'de> Deserialize<'de> for WorkflowDagEdge
impl<'de> Deserialize<'de> for WorkflowDagEdge
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
Source§impl PartialEq for WorkflowDagEdge
impl PartialEq for WorkflowDagEdge
Source§impl Serialize for WorkflowDagEdge
impl Serialize for WorkflowDagEdge
impl StructuralPartialEq for WorkflowDagEdge
Auto Trait Implementations§
impl Freeze for WorkflowDagEdge
impl RefUnwindSafe for WorkflowDagEdge
impl Send for WorkflowDagEdge
impl Sync for WorkflowDagEdge
impl Unpin for WorkflowDagEdge
impl UnsafeUnpin for WorkflowDagEdge
impl UnwindSafe for WorkflowDagEdge
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