pub struct ListTasksResult {
pub tasks: Vec<Task>,
pub next_cursor: Option<Cursor>,
pub meta: Option<HashMap<String, Value>>,
}Expand description
Core MCP protocol types and error handling Result for tasks/list (extends PaginatedResult)
Fields§
§tasks: Vec<Task>Available tasks
next_cursor: Option<Cursor>Optional cursor for next page
meta: Option<HashMap<String, Value>>Meta information (from PaginatedResult)
Implementations§
Source§impl ListTasksResult
impl ListTasksResult
pub fn new(tasks: Vec<Task>) -> ListTasksResult
pub fn with_next_cursor(self, cursor: Cursor) -> ListTasksResult
pub fn with_meta(self, meta: HashMap<String, Value>) -> ListTasksResult
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 HasData for ListTasksResult
impl HasData for ListTasksResult
Source§impl HasMeta for ListTasksResult
impl HasMeta for ListTasksResult
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
impl RpcResult 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 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