#[non_exhaustive]pub struct ChildOperationReference {
pub reference_id: String,
pub kind: String,
pub operation_id: String,
pub flow_run_id: Option<String>,
pub metadata: JsonValue,
}Expand description
Durable reference from a parent workflow to a child operation.
flow_run_id is set only when the child is another A3S Flow run. The
reference itself does not imply automatic cancellation; the parent
workflow owns propagation through durable, idempotent cleanup steps.
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.reference_id: StringReplay-stable parent-local identity of the reference.
kind: StringApplication-defined operation kind.
operation_id: StringIdentifier assigned by the child operation’s owner.
flow_run_id: Option<String>Linked A3S Flow run identifier, when the child is a workflow run.
metadata: JsonValueApplication-defined structured metadata.
Implementations§
Source§impl ChildOperationReference
impl ChildOperationReference
Sourcepub fn new(
reference_id: impl Into<String>,
kind: impl Into<String>,
operation_id: impl Into<String>,
) -> Self
pub fn new( reference_id: impl Into<String>, kind: impl Into<String>, operation_id: impl Into<String>, ) -> Self
Creates a child-operation reference without Flow ownership or metadata.
Sourcepub fn with_flow_run_id(self, flow_run_id: impl Into<String>) -> Self
pub fn with_flow_run_id(self, flow_run_id: impl Into<String>) -> Self
Associates the operation with an A3S Flow run.
Sourcepub fn with_metadata(self, metadata: JsonValue) -> Self
pub fn with_metadata(self, metadata: JsonValue) -> Self
Sets application-defined structured metadata.
Trait Implementations§
Source§impl Clone for ChildOperationReference
impl Clone for ChildOperationReference
Source§fn clone(&self) -> ChildOperationReference
fn clone(&self) -> ChildOperationReference
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 ChildOperationReference
impl Debug for ChildOperationReference
Source§impl<'de> Deserialize<'de> for ChildOperationReference
impl<'de> Deserialize<'de> for ChildOperationReference
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 ChildOperationReference
impl PartialEq for ChildOperationReference
Source§impl Serialize for ChildOperationReference
impl Serialize for ChildOperationReference
impl StructuralPartialEq for ChildOperationReference
Auto Trait Implementations§
impl Freeze for ChildOperationReference
impl RefUnwindSafe for ChildOperationReference
impl Send for ChildOperationReference
impl Sync for ChildOperationReference
impl Unpin for ChildOperationReference
impl UnsafeUnpin for ChildOperationReference
impl UnwindSafe for ChildOperationReference
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