pub struct MCPRequest {
pub request_id: String,
pub source_peer: PeerId,
pub target_peer: PeerId,
pub message: MCPMessage,
pub timestamp: SystemTime,
pub timeout: Duration,
pub auth_token: Option<String>,
}Expand description
MCP request with routing information
Fields§
§request_id: StringRequest ID
source_peer: PeerIdSource peer
target_peer: PeerIdTarget peer
message: MCPMessageMCP message
timestamp: SystemTimeRequest timestamp
timeout: DurationRequest timeout
auth_token: Option<String>Authentication token
Trait Implementations§
Source§impl Clone for MCPRequest
impl Clone for MCPRequest
Source§fn clone(&self) -> MCPRequest
fn clone(&self) -> MCPRequest
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 moreAuto Trait Implementations§
impl Freeze for MCPRequest
impl RefUnwindSafe for MCPRequest
impl Send for MCPRequest
impl Sync for MCPRequest
impl Unpin 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