#[non_exhaustive]pub struct ListToolsResult {
pub tools: Vec<ToolInfo>,
pub next_cursor: Cursor,
}Expand description
List tools response.
§Backward Compatibility
This struct is #[non_exhaustive]. Use the constructor to remain
forward-compatible:
use pmcp::types::ListToolsResult;
let result = ListToolsResult::new(vec![]);Within the same crate, struct literal syntax with ..Default::default() also works.
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.tools: Vec<ToolInfo>Available tools
next_cursor: CursorPagination cursor for next page
Implementations§
Trait Implementations§
Source§impl Clone for ListToolsResult
impl Clone for ListToolsResult
Source§fn clone(&self) -> ListToolsResult
fn clone(&self) -> ListToolsResult
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 ListToolsResult
impl Debug for ListToolsResult
Source§impl Default for ListToolsResult
impl Default for ListToolsResult
Source§fn default() -> ListToolsResult
fn default() -> ListToolsResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListToolsResult
impl<'de> Deserialize<'de> for ListToolsResult
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 ListToolsResult
impl RefUnwindSafe for ListToolsResult
impl Send for ListToolsResult
impl Sync for ListToolsResult
impl Unpin for ListToolsResult
impl UnsafeUnpin for ListToolsResult
impl UnwindSafe for ListToolsResult
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