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<ListTasksResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListTasksResult, <__D as Deserializer<'de>>::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) -> ClientResult
fn from(value: ListTasksResult) -> ClientResult
Converts to this type from the input type.
Source§impl From<ListTasksResult> for MessageFromClient
impl From<ListTasksResult> for MessageFromClient
Source§fn from(value: ListTasksResult) -> MessageFromClient
fn from(value: ListTasksResult) -> MessageFromClient
Converts to this type from the input type.
Source§impl From<ListTasksResult> for MessageFromServer
impl From<ListTasksResult> for MessageFromServer
Source§fn from(value: ListTasksResult) -> MessageFromServer
fn from(value: ListTasksResult) -> MessageFromServer
Converts to this type from the input type.
Source§impl From<ListTasksResult> for Result
impl From<ListTasksResult> for Result
Source§fn from(value: ListTasksResult) -> Result
fn from(value: ListTasksResult) -> Result
Converts to this type from the input type.
Source§impl From<ListTasksResult> for ResultFromClient
impl From<ListTasksResult> for ResultFromClient
Source§fn from(value: ListTasksResult) -> ResultFromClient
fn from(value: ListTasksResult) -> ResultFromClient
Converts to this type from the input type.
Source§impl From<ListTasksResult> for ResultFromServer
impl From<ListTasksResult> for ResultFromServer
Source§fn from(value: ListTasksResult) -> ResultFromServer
fn from(value: ListTasksResult) -> ResultFromServer
Converts to this type from the input type.
Source§impl From<ListTasksResult> for ServerResult
impl From<ListTasksResult> for ServerResult
Source§fn from(value: ListTasksResult) -> ServerResult
fn from(value: ListTasksResult) -> ServerResult
Converts to this type from the input type.
Source§impl Serialize for ListTasksResult
impl Serialize for ListTasksResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<ResultFromClient> for ListTasksResult
impl TryFrom<ResultFromClient> for ListTasksResult
Source§fn try_from(
value: ResultFromClient,
) -> Result<ListTasksResult, <ListTasksResult as TryFrom<ResultFromClient>>::Error>
fn try_from( value: ResultFromClient, ) -> Result<ListTasksResult, <ListTasksResult as TryFrom<ResultFromClient>>::Error>
Performs the conversion.
Source§impl TryFrom<ResultFromServer> for ListTasksResult
impl TryFrom<ResultFromServer> for ListTasksResult
Source§fn try_from(
value: ResultFromServer,
) -> Result<ListTasksResult, <ListTasksResult as TryFrom<ResultFromServer>>::Error>
fn try_from( value: ResultFromServer, ) -> Result<ListTasksResult, <ListTasksResult as TryFrom<ResultFromServer>>::Error>
Performs the conversion.
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