pub struct NotificationParams {
pub meta: Option<Map<String, Value>>,
pub extra: Map<String, Value>,
}
Expand description
Generated from JSON schema definition for NotificationParams
Fields§
§meta: Option<Map<String, Value>>
This parameter name is reserved by MCP to allow clients and servers to attach additional metadata to their notifications.
extra: Map<String, Value>
Additional parameters that are not part of the schema.
Trait Implementations§
Source§impl Clone for NotificationParams
impl Clone for NotificationParams
Source§fn clone(&self) -> NotificationParams
fn clone(&self) -> NotificationParams
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 NotificationParams
impl Debug for NotificationParams
Source§impl Default for NotificationParams
impl Default for NotificationParams
Source§fn default() -> NotificationParams
fn default() -> NotificationParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationParams
impl<'de> Deserialize<'de> for NotificationParams
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 PartialEq for NotificationParams
impl PartialEq for NotificationParams
Source§impl Serialize for NotificationParams
impl Serialize for NotificationParams
impl StructuralPartialEq for NotificationParams
Auto Trait Implementations§
impl Freeze for NotificationParams
impl RefUnwindSafe for NotificationParams
impl Send for NotificationParams
impl Sync for NotificationParams
impl Unpin for NotificationParams
impl UnwindSafe for NotificationParams
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