pub struct ToolsListChangedNotification {
pub metadata: Option<Value>,
}Expand description
Tools list changed notification
Fields§
§metadata: Option<Value>Optional metadata about the change
Implementations§
Source§impl ToolsListChangedNotification
impl ToolsListChangedNotification
pub fn new() -> ToolsListChangedNotification
pub fn with_metadata(self, metadata: Value) -> ToolsListChangedNotification
Trait Implementations§
Source§impl Clone for ToolsListChangedNotification
impl Clone for ToolsListChangedNotification
Source§fn clone(&self) -> ToolsListChangedNotification
fn clone(&self) -> ToolsListChangedNotification
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 ToolsListChangedNotification
impl Debug for ToolsListChangedNotification
Source§impl Default for ToolsListChangedNotification
impl Default for ToolsListChangedNotification
Source§fn default() -> ToolsListChangedNotification
fn default() -> ToolsListChangedNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolsListChangedNotification
impl<'de> Deserialize<'de> for ToolsListChangedNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolsListChangedNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolsListChangedNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ToolsListChangedNotification
impl Serialize for ToolsListChangedNotification
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
Auto Trait Implementations§
impl Freeze for ToolsListChangedNotification
impl RefUnwindSafe for ToolsListChangedNotification
impl Send for ToolsListChangedNotification
impl Sync for ToolsListChangedNotification
impl Unpin for ToolsListChangedNotification
impl UnwindSafe for ToolsListChangedNotification
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