pub struct McpRequest {
pub transport: McpTransport,
pub envelope: JsonRpcEnvelope,
pub kind: ClientKind,
pub headers: HeaderMap,
pub session_hint: Option<SessionId>,
}Expand description
An MCP HTTP request from the client. Body carries exactly one JSON-RPC message — no batching per MCP 2025-11-25.
Fields§
§transport: McpTransport§envelope: JsonRpcEnvelope§kind: ClientKind§headers: HeaderMap§session_hint: Option<SessionId>Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpRequest
impl RefUnwindSafe for McpRequest
impl Send for McpRequest
impl Sync for McpRequest
impl Unpin for McpRequest
impl UnsafeUnpin for McpRequest
impl UnwindSafe for McpRequest
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