pub struct ListToolsParams {
pub meta: Option<RequestMeta>,
pub pagination: PaginationParams,
}Expand description
Sent from the client to request a list of tools the server has.
TS Ref: ListToolsRequest
Fields§
§meta: Option<RequestMeta>§pagination: PaginationParamsCursor for pagination
Implementations§
Source§impl ListToolsParams
Builders
impl ListToolsParams
Builders
pub fn with_meta(self, meta: RequestMeta) -> Self
pub fn with_pagination(self, pagination: PaginationParams) -> Self
pub fn with_cursor(self, cursor: impl Into<Cursor>) -> Self
Trait Implementations§
Source§impl Clone for ListToolsParams
impl Clone for ListToolsParams
Source§fn clone(&self) -> ListToolsParams
fn clone(&self) -> ListToolsParams
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 ListToolsParams
impl Debug for ListToolsParams
Source§impl Default for ListToolsParams
impl Default for ListToolsParams
Source§fn default() -> ListToolsParams
fn default() -> ListToolsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListToolsParams
impl<'de> Deserialize<'de> for ListToolsParams
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 IntoMcpRequest<ListToolsParams> for ListToolsParams
impl IntoMcpRequest<ListToolsParams> for ListToolsParams
const METHOD: &'static str = "tools/list"
type McpResult = ListToolsResult
fn into_mcp_request(self) -> McpRequest<P>
Auto Trait Implementations§
impl Freeze for ListToolsParams
impl RefUnwindSafe for ListToolsParams
impl Send for ListToolsParams
impl Sync for ListToolsParams
impl Unpin for ListToolsParams
impl UnsafeUnpin for ListToolsParams
impl UnwindSafe for ListToolsParams
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