pub struct ModuleDagNodeDef {
pub node_id: String,
pub node: Arc<dyn ModuleNodeTrait>,
pub placement_override: Option<NodePlacement>,
pub policy_override: Option<DagNodeExecutionPolicy>,
pub tags: Vec<String>,
}Fields§
§node_id: String§node: Arc<dyn ModuleNodeTrait>§placement_override: Option<NodePlacement>§policy_override: Option<DagNodeExecutionPolicy>Implementations§
Source§impl ModuleDagNodeDef
impl ModuleDagNodeDef
pub fn new(node: Arc<dyn ModuleNodeTrait>) -> Self
Sourcepub fn with_id(self, id: impl Into<String>) -> Self
pub fn with_id(self, id: impl Into<String>) -> Self
Overrides the auto-generated node ID with an explicit stable identifier.
Use this when you need multiple instances of the same node type in one DAG, or
when you cannot implement stable_node_key() on the node struct directly.
The ID must be unique within the DAG.
Trait Implementations§
Source§impl Clone for ModuleDagNodeDef
impl Clone for ModuleDagNodeDef
Source§fn clone(&self) -> ModuleDagNodeDef
fn clone(&self) -> ModuleDagNodeDef
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ModuleDagNodeDef
impl !UnwindSafe for ModuleDagNodeDef
impl Freeze for ModuleDagNodeDef
impl Send for ModuleDagNodeDef
impl Sync for ModuleDagNodeDef
impl Unpin for ModuleDagNodeDef
impl UnsafeUnpin for ModuleDagNodeDef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more