pub struct Send {
pub node: String,
pub arg: Value,
}Expand description
A command to send work to a specific node with custom input.
Send enables dynamic routing where the graph can decide at runtime
to invoke specific nodes with specific inputs, enabling map-reduce patterns.
§Example
use rust_langgraph::types::Send;
use serde_json::json;
let send = Send::new("process_item", json!({"item_id": 42}));Fields§
§node: StringThe name of the node to send to
arg: ValueThe input to send to the node
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Send
impl<'de> Deserialize<'de> for Send
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 Freeze for Send
impl RefUnwindSafe for Send
impl Send for Send
impl Sync for Send
impl Unpin for Send
impl UnsafeUnpin for Send
impl UnwindSafe for Send
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