pub struct JsonrpcNotificationParams {
pub meta: Option<Map<String, Value>>,
pub extra: Option<Map<String, Value>>,
}
Expand description
JsonrpcNotificationParams
JSON schema
{
"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§
§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: Option<Map<String, Value>>
Trait Implementations§
Source§impl Clone for JsonrpcNotificationParams
impl Clone for JsonrpcNotificationParams
Source§fn clone(&self) -> JsonrpcNotificationParams
fn clone(&self) -> JsonrpcNotificationParams
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 JsonrpcNotificationParams
impl Debug for JsonrpcNotificationParams
Source§impl Default for JsonrpcNotificationParams
impl Default for JsonrpcNotificationParams
Source§fn default() -> JsonrpcNotificationParams
fn default() -> JsonrpcNotificationParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonrpcNotificationParams
impl<'de> Deserialize<'de> for JsonrpcNotificationParams
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 JsonrpcNotificationParams
impl RefUnwindSafe for JsonrpcNotificationParams
impl Send for JsonrpcNotificationParams
impl Sync for JsonrpcNotificationParams
impl Unpin for JsonrpcNotificationParams
impl UnwindSafe for JsonrpcNotificationParams
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