pub struct SubscriptionsListenRequestParams {
pub meta: RequestMetaObject,
pub notifications: SubscriptionFilter,
}Expand description
Latest MCP Protocol 2026_07_28 Parameters for a {@link SubscriptionsListenRequestsubscriptions/listen} request.
JSON schema
{
"description": "Parameters for a {@link SubscriptionsListenRequestsubscriptions/listen} request.",
"type": "object",
"required": [
"_meta",
"notifications"
],
"properties": {
"_meta": {
"$ref": "#/$defs/RequestMetaObject"
},
"notifications": {
"description": "The notifications the client opts in to on this stream. The server\n**MUST NOT** send notification types the client has not explicitly\nrequested.",
"$ref": "#/$defs/SubscriptionFilter"
}
}
}Fields§
§meta: RequestMetaObject§notifications: SubscriptionFilterThe notifications the client opts in to on this stream. The server MUST NOT send notification types the client has not explicitly requested.
Trait Implementations§
Source§impl Clone for SubscriptionsListenRequestParams
impl Clone for SubscriptionsListenRequestParams
Source§fn clone(&self) -> SubscriptionsListenRequestParams
fn clone(&self) -> SubscriptionsListenRequestParams
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<'de> Deserialize<'de> for SubscriptionsListenRequestParams
impl<'de> Deserialize<'de> for SubscriptionsListenRequestParams
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 SubscriptionsListenRequestParams
impl RefUnwindSafe for SubscriptionsListenRequestParams
impl Send for SubscriptionsListenRequestParams
impl Sync for SubscriptionsListenRequestParams
impl Unpin for SubscriptionsListenRequestParams
impl UnsafeUnpin for SubscriptionsListenRequestParams
impl UnwindSafe for SubscriptionsListenRequestParams
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