pub struct JsonRpcBatch<T> {
pub items: Vec<T>,
}๐Deprecated since 2.2.3: JSON-RPC batching removed from MCP 2025-06-18 spec (PR #416). This type exists only for defensive handling and will be removed.
Expand description
JSON-RPC batch request/response
IMPORTANT: JSON-RPC batching is NOT supported in MCP 2025-06-18 specification. This type exists only for defensive deserialization and will return errors if used. Per MCP spec changelog (PR #416), batch support was explicitly removed.
Do not use this type in new code. It will be removed in a future version.
Fieldsยง
ยงitems: Vec<T>๐Deprecated since 2.2.3: JSON-RPC batching removed from MCP 2025-06-18 spec (PR #416). This type exists only for defensive handling and will be removed.
Batch items
Implementationsยง
Sourceยงimpl<T> JsonRpcBatch<T>
impl<T> JsonRpcBatch<T>
Trait Implementationsยง
Sourceยงimpl<T: Clone> Clone for JsonRpcBatch<T>
impl<T: Clone> Clone for JsonRpcBatch<T>
Sourceยงfn clone(&self) -> JsonRpcBatch<T>
fn clone(&self) -> JsonRpcBatch<T>
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<T: Debug> Debug for JsonRpcBatch<T>
impl<T: Debug> Debug for JsonRpcBatch<T>
Sourceยงimpl<'de, T> Deserialize<'de> for JsonRpcBatch<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for JsonRpcBatch<T>where
T: Deserialize<'de>,
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<T> From<Vec<T>> for JsonRpcBatch<T>
impl<T> From<Vec<T>> for JsonRpcBatch<T>
Sourceยงimpl<T> IntoIterator for JsonRpcBatch<T>
impl<T> IntoIterator for JsonRpcBatch<T>
Auto Trait Implementationsยง
impl<T> Freeze for JsonRpcBatch<T>
impl<T> RefUnwindSafe for JsonRpcBatch<T>where
T: RefUnwindSafe,
impl<T> Send for JsonRpcBatch<T>where
T: Send,
impl<T> Sync for JsonRpcBatch<T>where
T: Sync,
impl<T> Unpin for JsonRpcBatch<T>where
T: Unpin,
impl<T> UnwindSafe for JsonRpcBatch<T>where
T: UnwindSafe,
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