pub struct MCPResponse {
pub request_id: String,
pub message: MCPMessage,
pub timestamp: SystemTime,
pub processing_time: Duration,
}
Expand description
MCP response with metadata
Fields§
§request_id: String
Request ID this response corresponds to
message: MCPMessage
Response message
timestamp: SystemTime
Response timestamp
processing_time: Duration
Processing time
Trait Implementations§
Source§impl Clone for MCPResponse
impl Clone for MCPResponse
Source§fn clone(&self) -> MCPResponse
fn clone(&self) -> MCPResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MCPResponse
impl RefUnwindSafe for MCPResponse
impl Send for MCPResponse
impl Sync for MCPResponse
impl Unpin for MCPResponse
impl UnwindSafe for MCPResponse
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