pub struct MrtrInputRequest { /* private fields */ }Expand description
One final MRTR embedded input descriptor.
Its wire representation is exactly { "method": ..., "params": ... }
when it has parameters, or { "method": "roots/list" } for roots. It
deliberately has no JSON-RPC envelope, correlation ID, or inherited outer
request metadata.
Implementations§
Source§impl MrtrInputRequest
impl MrtrInputRequest
Sourcepub fn legacy_elicitation(params: ElicitRequestParams) -> Self
pub fn legacy_elicitation(params: ElicitRequestParams) -> Self
Creates an exact-2024 form or URL elicitation request.
Sourcepub fn sampling(params: FinalEmbeddedCreateMessageParams) -> McpResult<Self>
pub fn sampling(params: FinalEmbeddedCreateMessageParams) -> McpResult<Self>
Creates a final sampling input descriptor.
The embedded descriptor must not inherit the outer request’s metadata,
so this safe constructor always omits _meta.
§Errors
Returns an internal error only if its protocol parameters cannot be represented as JSON.
Sourcepub const fn kind(&self) -> MrtrInputKind
pub const fn kind(&self) -> MrtrInputKind
Returns the input’s exact response kind.
Trait Implementations§
Source§impl Clone for MrtrInputRequest
impl Clone for MrtrInputRequest
Source§fn clone(&self) -> MrtrInputRequest
fn clone(&self) -> MrtrInputRequest
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 MrtrInputRequest
impl Debug for MrtrInputRequest
Auto Trait Implementations§
impl Freeze for MrtrInputRequest
impl RefUnwindSafe for MrtrInputRequest
impl Send for MrtrInputRequest
impl Sync for MrtrInputRequest
impl Unpin for MrtrInputRequest
impl UnsafeUnpin for MrtrInputRequest
impl UnwindSafe for MrtrInputRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).