pub struct ToolListChangedNotification {
pub params: Option<ToolListChangedNotificationParams>,
/* private fields */
}
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§
§params: Option<ToolListChangedNotificationParams>
Implementations§
Source§impl ToolListChangedNotification
impl ToolListChangedNotification
pub fn new(params: Option<ToolListChangedNotificationParams>) -> Self
pub fn method(&self) -> &String
pub fn method_name() -> String
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 MessageFromServer
impl From<ToolListChangedNotification> for MessageFromServer
Source§fn from(value: ToolListChangedNotification) -> Self
fn from(value: ToolListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ToolListChangedNotification> for NotificationFromServer
impl From<ToolListChangedNotification> for NotificationFromServer
Source§fn from(value: ToolListChangedNotification) -> Self
fn from(value: ToolListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ToolListChangedNotification> for ServerJsonrpcNotification
impl From<ToolListChangedNotification> for ServerJsonrpcNotification
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.
Source§impl FromMessage<ToolListChangedNotification> for ServerMessage
impl FromMessage<ToolListChangedNotification> for ServerMessage
fn from_message( message: ToolListChangedNotification, request_id: Option<RequestId>, ) -> Result<Self, RpcError>
Source§impl ToMessage<ServerMessage> for ToolListChangedNotification
impl ToMessage<ServerMessage> for ToolListChangedNotification
fn to_message( self, request_id: Option<RequestId>, ) -> Result<ServerMessage, RpcError>
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