pub struct GetTaskPayloadResult {
pub result: Value,
pub _meta: Option<HashMap<String, Value>>,
}Expand description
Response from tasks/result containing the actual operation result
The structure matches the original request type:
- For
tools/calltask:CallToolResult - For
sampling/createMessagetask:CreateMessageResult - For
elicitation/createtask:ElicitResult
The _meta field SHOULD include io.modelcontextprotocol/related-task metadata.
§Examples
{
"content": [{"type": "text", "text": "Result data"}],
"isError": false,
"_meta": {
"io.modelcontextprotocol/related-task": {
"taskId": "task-123"
}
}
}Fields§
§result: ValueDynamic result content (structure depends on original request type)
_meta: Option<HashMap<String, Value>>Optional metadata (SHOULD include related-task)
Trait Implementations§
Source§impl Clone for GetTaskPayloadResult
impl Clone for GetTaskPayloadResult
Source§fn clone(&self) -> GetTaskPayloadResult
fn clone(&self) -> GetTaskPayloadResult
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 GetTaskPayloadResult
impl Debug for GetTaskPayloadResult
Source§impl<'de> Deserialize<'de> for GetTaskPayloadResult
impl<'de> Deserialize<'de> for GetTaskPayloadResult
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 GetTaskPayloadResult
impl RefUnwindSafe for GetTaskPayloadResult
impl Send for GetTaskPayloadResult
impl Sync for GetTaskPayloadResult
impl Unpin for GetTaskPayloadResult
impl UnwindSafe for GetTaskPayloadResult
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