pub struct DispatchResult {
pub task_id: String,
pub agent_id: String,
pub status: DispatchStatus,
pub output: Option<AgentOutput>,
pub error: Option<String>,
pub duration_ms: u64,
}Expand description
分发结果
Fields§
§task_id: String任务 ID
agent_id: StringAgent ID
status: DispatchStatus执行状态
output: Option<AgentOutput>执行结果 (如果完成)
error: Option<String>错误信息 (如果失败)
duration_ms: u64执行时间 (毫秒)
Implementations§
Trait Implementations§
Source§impl Clone for DispatchResult
impl Clone for DispatchResult
Source§fn clone(&self) -> DispatchResult
fn clone(&self) -> DispatchResult
Returns a duplicate of the value. Read more
1.0.0 · 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 DispatchResult
impl Debug for DispatchResult
Source§impl<'de> Deserialize<'de> for DispatchResult
impl<'de> Deserialize<'de> for DispatchResult
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 DispatchResult
impl RefUnwindSafe for DispatchResult
impl Send for DispatchResult
impl Sync for DispatchResult
impl Unpin for DispatchResult
impl UnsafeUnpin for DispatchResult
impl UnwindSafe for DispatchResult
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