#[non_exhaustive]pub struct WorkflowContinuation {
pub successor_run_id: String,
pub input: JsonValue,
}Expand description
Durable link from a closed history segment to its successor run.
The successor inherits the predecessor’s complete super::WorkflowSpec.
Only input changes across the boundary, so replay-code admission and patch
markers cannot drift while an execution is segmented.
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.successor_run_id: StringRun identifier assigned to the successor history segment.
input: JsonValueInitial JSON input supplied to the successor.
Implementations§
Source§impl WorkflowContinuation
impl WorkflowContinuation
Sourcepub fn input_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
pub fn input_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
Decode the successor input into a host-defined serde type.
Trait Implementations§
Source§impl Clone for WorkflowContinuation
impl Clone for WorkflowContinuation
Source§fn clone(&self) -> WorkflowContinuation
fn clone(&self) -> WorkflowContinuation
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 WorkflowContinuation
impl Debug for WorkflowContinuation
Source§impl<'de> Deserialize<'de> for WorkflowContinuation
impl<'de> Deserialize<'de> for WorkflowContinuation
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 WorkflowContinuation
impl PartialEq for WorkflowContinuation
Source§impl Serialize for WorkflowContinuation
impl Serialize for WorkflowContinuation
impl StructuralPartialEq for WorkflowContinuation
Auto Trait Implementations§
impl Freeze for WorkflowContinuation
impl RefUnwindSafe for WorkflowContinuation
impl Send for WorkflowContinuation
impl Sync for WorkflowContinuation
impl Unpin for WorkflowContinuation
impl UnsafeUnpin for WorkflowContinuation
impl UnwindSafe for WorkflowContinuation
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