pub struct SkillsChangedNotification(pub Map<String, Value>);Expand description
Notification emitted when watched local skill files change.
Treat this as an invalidation signal and re-run skills/list with the client’s current parameters when refreshed skill metadata is needed.
JSON schema
{
"title": "SkillsChangedNotification",
"description": "Notification emitted when watched local skill files change.\n\nTreat this as an invalidation signal and re-run `skills/list` with the client's current parameters when refreshed skill metadata is needed.",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#"
}Tuple Fields§
§0: Map<String, Value>Methods from Deref<Target = Map<String, Value>>§
Sourcepub fn get<Q>(&self, key: &Q) -> Option<&Value>
pub fn get<Q>(&self, key: &Q) -> Option<&Value>
Returns a reference to the value corresponding to the key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Sourcepub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn contains_key<Q>(&self, key: &Q) -> bool
Returns true if the map contains a value for the specified key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Trait Implementations§
Source§impl Clone for SkillsChangedNotification
impl Clone for SkillsChangedNotification
Source§fn clone(&self) -> SkillsChangedNotification
fn clone(&self) -> SkillsChangedNotification
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 SkillsChangedNotification
impl Debug for SkillsChangedNotification
Source§impl Deref for SkillsChangedNotification
impl Deref for SkillsChangedNotification
Source§impl<'de> Deserialize<'de> for SkillsChangedNotification
impl<'de> Deserialize<'de> for SkillsChangedNotification
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<SkillsChangedNotification> for Map<String, Value>
impl From<SkillsChangedNotification> for Map<String, Value>
Source§fn from(value: SkillsChangedNotification) -> Self
fn from(value: SkillsChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<SkillsChangedNotification> for ServerNotification
impl From<SkillsChangedNotification> for ServerNotification
Source§fn from(value: SkillsChangedNotification) -> Self
fn from(value: SkillsChangedNotification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SkillsChangedNotification
impl RefUnwindSafe for SkillsChangedNotification
impl Send for SkillsChangedNotification
impl Sync for SkillsChangedNotification
impl Unpin for SkillsChangedNotification
impl UnsafeUnpin for SkillsChangedNotification
impl UnwindSafe for SkillsChangedNotification
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