pub struct Dag { /* private fields */ }
Expand description
Describes a directed acyclic graph (DAG) to be used as a saga or subsaga
If you want to run this Dag
as a saga, you need to create a SagaDag
(which requires providing input parameters).
If you want to insert this Dag
into another saga (as a subsaga), use
Node::subsaga()
to create a subsaga node and append this to the outer
saga’s DagBuilder
.
This type is built with DagBuilder
.
Implementations§
source§impl Dag
impl Dag
sourcepub fn builder(saga_name: SagaName) -> DagBuilder
pub fn builder(saga_name: SagaName) -> DagBuilder
Creates a new DagBuilder
instance.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Dag
impl<'de> Deserialize<'de> for Dag
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 RefUnwindSafe for Dag
impl Send for Dag
impl Sync for Dag
impl Unpin for Dag
impl UnwindSafe for Dag
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