pub struct SamplingRequestedData {
pub mcp_request_id: Value,
pub request_id: RequestId,
pub server_name: String,
}Expand description
Sampling request from an MCP server; contains the server name and a requestId for correlation
Fields§
§mcp_request_id: ValueThe JSON-RPC request ID from the MCP protocol
request_id: RequestIdUnique identifier for this sampling request; used to respond via session.respondToSampling()
server_name: StringName of the MCP server that initiated the sampling request
Trait Implementations§
Source§impl Clone for SamplingRequestedData
impl Clone for SamplingRequestedData
Source§fn clone(&self) -> SamplingRequestedData
fn clone(&self) -> SamplingRequestedData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SamplingRequestedData
impl Debug for SamplingRequestedData
Source§impl<'de> Deserialize<'de> for SamplingRequestedData
impl<'de> Deserialize<'de> for SamplingRequestedData
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
Auto Trait Implementations§
impl Freeze for SamplingRequestedData
impl RefUnwindSafe for SamplingRequestedData
impl Send for SamplingRequestedData
impl Sync for SamplingRequestedData
impl Unpin for SamplingRequestedData
impl UnsafeUnpin for SamplingRequestedData
impl UnwindSafe for SamplingRequestedData
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