#[non_exhaustive]pub struct ListTasksResult {
pub tasks: Vec<Task>,
pub next_cursor: Option<String>,
}Expand description
List tasks result — v1-only (2025-11-25).
There is no v2 counterpart and no projection type: tasks/list is ABSENT
from the io.modelcontextprotocol/tasks extension and answers -32601 on a
v2-negotiated request (inventory row 37, plan 114-08). The removal is a
SECURITY improvement — with no enumeration primitive a server cannot leak
the existence of one caller’s tasks to another. Kept unchanged for v1.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tasks: Vec<Task>List of tasks
next_cursor: Option<String>Pagination cursor for next page
Implementations§
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 (const: unstable) · 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 Default for ListTasksResult
impl Default for ListTasksResult
Source§fn default() -> ListTasksResult
fn default() -> ListTasksResult
Returns the “default value” for a type. Read more
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
Auto Trait Implementations§
impl Freeze for ListTasksResult
impl RefUnwindSafe for ListTasksResult
impl Send for ListTasksResult
impl Sync for ListTasksResult
impl Unpin for ListTasksResult
impl UnsafeUnpin 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