#[non_exhaustive]pub struct ChildWorkflowCommand {
pub child_id: String,
pub spec: WorkflowSpec,
pub input: JsonValue,
pub cancellation_policy: ChildWorkflowCancellationPolicy,
}Expand description
First-class child workflow definition returned as part of a durable batch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.child_id: StringReplay-stable parent-local child identifier.
spec: WorkflowSpecWorkflow definition used to create the child.
input: JsonValueInitial JSON input supplied to the child.
cancellation_policy: ChildWorkflowCancellationPolicyPolicy applied when the parent is cancelled or terminated.
Implementations§
Source§impl ChildWorkflowCommand
impl ChildWorkflowCommand
Sourcepub fn new(
child_id: impl Into<String>,
spec: WorkflowSpec,
input: JsonValue,
) -> Self
pub fn new( child_id: impl Into<String>, spec: WorkflowSpec, input: JsonValue, ) -> Self
Create a child definition with the default cancellation policy.
Sourcepub fn with_cancellation_policy(
self,
cancellation_policy: ChildWorkflowCancellationPolicy,
) -> Self
pub fn with_cancellation_policy( self, cancellation_policy: ChildWorkflowCancellationPolicy, ) -> Self
Replace the policy applied when the parent stops.
Trait Implementations§
Source§impl Clone for ChildWorkflowCommand
impl Clone for ChildWorkflowCommand
Source§fn clone(&self) -> ChildWorkflowCommand
fn clone(&self) -> ChildWorkflowCommand
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 ChildWorkflowCommand
impl Debug for ChildWorkflowCommand
Source§impl<'de> Deserialize<'de> for ChildWorkflowCommand
impl<'de> Deserialize<'de> for ChildWorkflowCommand
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 ChildWorkflowCommand
impl PartialEq for ChildWorkflowCommand
Source§impl Serialize for ChildWorkflowCommand
impl Serialize for ChildWorkflowCommand
impl StructuralPartialEq for ChildWorkflowCommand
Auto Trait Implementations§
impl Freeze for ChildWorkflowCommand
impl RefUnwindSafe for ChildWorkflowCommand
impl Send for ChildWorkflowCommand
impl Sync for ChildWorkflowCommand
impl Unpin for ChildWorkflowCommand
impl UnsafeUnpin for ChildWorkflowCommand
impl UnwindSafe for ChildWorkflowCommand
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