1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Send API for dynamic fan-out
//!
//! The Send API allows nodes to dynamically create multiple parallel tasks,
//! each with its own state snapshot.
use crateState;
/// Dynamic fan-out target
///
/// Represents a single task in a dynamic fan-out operation. Each Send target
/// specifies which node to execute and provides a custom state for that task.
///
/// # Examples
///
/// ```ignore
/// use juncture_core::{Send, State, command::SendTarget};
/// use serde_json::json;
///
/// struct MyState;
/// impl State for MyState {
/// type Update = MyStateUpdate;
/// }
///
/// struct MyStateUpdate;
///
/// // Create a send target with custom state
/// let send = Send {
/// node: "worker".to_string(),
/// state: MyState { /* ... */ },
/// };
/// ```
// Rust guideline compliant 2026-05-20