pub struct ListTasksResult {
pub meta: Option<Map<String, Value>>,
pub next_cursor: Option<String>,
pub tasks: Vec<Task>,
}Expand description
The response to a tasks/list request.
JSON schema
{
"description": "The response to a tasks/list request.",
"type": "object",
"required": [
"tasks"
],
"properties": {
"_meta": {
"description": "See [General fields: _meta](https://modelcontextprotocol.io/specification/2025-11-25/basic/index#meta) for notes on _meta usage.",
"type": "object",
"additionalProperties": {}
},
"nextCursor": {
"description": "An opaque token representing the pagination position after the last returned result.\nIf present, there may be more results available.",
"type": "string"
},
"tasks": {
"type": "array",
"items": {
"$ref": "#/$defs/Task"
}
}
}
}Fields§
§meta: Option<Map<String, Value>>See General fields: _meta for notes on _meta usage.
next_cursor: Option<String>An opaque token representing the pagination position after the last returned result. If present, there may be more results available.
tasks: Vec<Task>Trait Implementations§
Source§impl Clone for ListTasksResult
impl Clone for ListTasksResult
Source§fn clone(&self) -> ListTasksResult
fn clone(&self) -> ListTasksResult
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 ListTasksResult
impl Debug for ListTasksResult
Source§impl<'de> Deserialize<'de> for ListTasksResult
impl<'de> Deserialize<'de> for ListTasksResult
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 From<ListTasksResult> for ClientResult
impl From<ListTasksResult> for ClientResult
Source§fn from(value: ListTasksResult) -> Self
fn from(value: ListTasksResult) -> Self
Converts to this type from the input type.
Source§impl From<ListTasksResult> for GenericResult
impl From<ListTasksResult> for GenericResult
Source§fn from(value: ListTasksResult) -> Self
fn from(value: ListTasksResult) -> Self
Converts to this type from the input type.
Source§impl From<ListTasksResult> for ServerResult
impl From<ListTasksResult> for ServerResult
Source§fn from(value: ListTasksResult) -> Self
fn from(value: ListTasksResult) -> Self
Converts to this type from the input type.
Source§impl Serialize for ListTasksResult
impl Serialize for ListTasksResult
Source§impl TryFrom<ClientResult> for ListTasksResult
impl TryFrom<ClientResult> for ListTasksResult
Source§impl TryFrom<ServerResult> for ListTasksResult
impl TryFrom<ServerResult> for ListTasksResult
Auto Trait Implementations§
impl Freeze for ListTasksResult
impl RefUnwindSafe for ListTasksResult
impl Send for ListTasksResult
impl Sync for ListTasksResult
impl Unpin for ListTasksResult
impl UnwindSafe for ListTasksResult
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