pub struct ToolListChangedNotification {
pub method: String,
pub params: Option<ToolListChangedNotificationParams>,
}
Expand description
An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
JSON schema
{
"description": "An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.",
"type": "object",
"required": [
"method"
],
"properties": {
"method": {
"type": "string",
"const": "notifications/tools/list_changed"
},
"params": {
"type": "object",
"properties": {
"_meta": {
"description": "This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications.",
"type": "object",
"additionalProperties": {}
}
},
"additionalProperties": {}
}
}
}
Fields§
§method: String
§params: Option<ToolListChangedNotificationParams>
Trait Implementations§
Source§impl Clone for ToolListChangedNotification
impl Clone for ToolListChangedNotification
Source§fn clone(&self) -> ToolListChangedNotification
fn clone(&self) -> ToolListChangedNotification
Returns a copy 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 ToolListChangedNotification
impl Debug for ToolListChangedNotification
Source§impl<'de> Deserialize<'de> for ToolListChangedNotification
impl<'de> Deserialize<'de> for ToolListChangedNotification
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 From<&ToolListChangedNotification> for ServerNotification
impl From<&ToolListChangedNotification> for ServerNotification
Source§fn from(value: &ToolListChangedNotification) -> Self
fn from(value: &ToolListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<&ToolListChangedNotification> for ToolListChangedNotification
impl From<&ToolListChangedNotification> for ToolListChangedNotification
Source§fn from(value: &ToolListChangedNotification) -> Self
fn from(value: &ToolListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ToolListChangedNotification> for ServerNotification
impl From<ToolListChangedNotification> for ServerNotification
Source§fn from(value: ToolListChangedNotification) -> Self
fn from(value: ToolListChangedNotification) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ToolListChangedNotification
Auto Trait Implementations§
impl Freeze for ToolListChangedNotification
impl RefUnwindSafe for ToolListChangedNotification
impl Send for ToolListChangedNotification
impl Sync for ToolListChangedNotification
impl Unpin for ToolListChangedNotification
impl UnwindSafe for ToolListChangedNotification
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