pub struct MCPNotificationParams {
pub meta: Option<HashMap<String, Value>>,
pub extra: HashMap<String, Value>,
}
Expand description
Parameters for an MCP notification, allowing additional arbitrary fields via flatten
.
Fields§
§meta: Option<HashMap<String, Value>>
§extra: HashMap<String, Value>
Trait Implementations§
Source§impl Clone for MCPNotificationParams
impl Clone for MCPNotificationParams
Source§fn clone(&self) -> MCPNotificationParams
fn clone(&self) -> MCPNotificationParams
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 MCPNotificationParams
impl Debug for MCPNotificationParams
Source§impl Default for MCPNotificationParams
impl Default for MCPNotificationParams
Source§fn default() -> MCPNotificationParams
fn default() -> MCPNotificationParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MCPNotificationParams
impl<'de> Deserialize<'de> for MCPNotificationParams
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
Auto Trait Implementations§
impl Freeze for MCPNotificationParams
impl RefUnwindSafe for MCPNotificationParams
impl Send for MCPNotificationParams
impl Sync for MCPNotificationParams
impl Unpin for MCPNotificationParams
impl UnwindSafe for MCPNotificationParams
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