pub struct SubscriptionsListenResultMetaObject {
pub subscription_id: RequestId,
pub server_info: Option<Implementation>,
pub extra: HashMap<String, Value>,
}protocol-2026-07-28 only.Expand description
Core MCP protocol types, errors, and specification compliance
_meta for SubscriptionsListenResult. Schema:
SubscriptionsListenResultMetaObject extends ResultMetaObject with a REQUIRED
io.modelcontextprotocol/subscriptionId: RequestId — the id of the
subscriptions/listen request this result closes (equals the result’s
own id in the JSON-RPC envelope). Extending
crate::meta::ResultMetaObject means it also carries the optional
io.modelcontextprotocol/serverInfo.
Serialize is hand-written rather than #[derive] + #[serde(flatten)]:
extra is public and caller-writable, so a caller could otherwise insert
one of the reserved keys into it and produce the same key twice on the
wire. The typed field always wins; a colliding extra entry is dropped
rather than emitted.
Fields§
§subscription_id: RequestIdId of the subscriptions/listen request this result closes.
server_info: Option<Implementation>Identifies the responding server. Optional.
extra: HashMap<String, Value>Additional caller-supplied meta keys per the MetaObject extension rules.
Implementations§
Source§impl SubscriptionsListenResultMetaObject
impl SubscriptionsListenResultMetaObject
Sourcepub fn new(subscription_id: RequestId) -> SubscriptionsListenResultMetaObject
Available on crate feature http only.
pub fn new(subscription_id: RequestId) -> SubscriptionsListenResultMetaObject
http only.Creates the meta from the id of the closed subscriptions/listen request, with no server info or extra keys.
Sourcepub fn with_server_info(
self,
info: Implementation,
) -> SubscriptionsListenResultMetaObject
Available on crate feature http only.
pub fn with_server_info( self, info: Implementation, ) -> SubscriptionsListenResultMetaObject
http only.Carry the responding server’s identity on the subscription-close result.
Trait Implementations§
Source§impl Clone for SubscriptionsListenResultMetaObject
impl Clone for SubscriptionsListenResultMetaObject
Source§fn clone(&self) -> SubscriptionsListenResultMetaObject
fn clone(&self) -> SubscriptionsListenResultMetaObject
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for SubscriptionsListenResultMetaObject
impl<'de> Deserialize<'de> for SubscriptionsListenResultMetaObject
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscriptionsListenResultMetaObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubscriptionsListenResultMetaObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SubscriptionsListenResultMetaObject
impl Serialize for SubscriptionsListenResultMetaObject
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Auto Trait Implementations§
impl Forget for SubscriptionsListenResultMetaObject
impl Freeze for SubscriptionsListenResultMetaObject
impl Move for SubscriptionsListenResultMetaObject
impl RefUnwindSafe for SubscriptionsListenResultMetaObject
impl Send for SubscriptionsListenResultMetaObject
impl Sync for SubscriptionsListenResultMetaObject
impl Unpin for SubscriptionsListenResultMetaObject
impl UnsafeUnpin for SubscriptionsListenResultMetaObject
impl UnwindSafe for SubscriptionsListenResultMetaObject
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more