pub struct McpTestBuilder { /* private fields */ }Implementations§
Source§impl McpTestBuilder
impl McpTestBuilder
pub fn new() -> Self
pub fn server<S>(self, name: impl Into<String>, server: S) -> Self
pub fn deferred_server<T>(self, name: impl Into<String>, server: T) -> Self
pub fn server_with_exposure<T>( self, name: impl Into<String>, server: T, exposure: ToolExposure, ) -> Self
pub fn elicitation_response(self, response: ElicitResult) -> Self
pub fn trace_context(self, trace_context: TraceContext) -> Self
pub fn tool_timeout(self, timeout: Duration) -> Self
pub async fn build(self) -> McpTest
Trait Implementations§
Source§impl Default for McpTestBuilder
impl Default for McpTestBuilder
Source§fn default() -> McpTestBuilder
fn default() -> McpTestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for McpTestBuilder
impl !UnwindSafe for McpTestBuilder
impl Freeze for McpTestBuilder
impl Send for McpTestBuilder
impl Sync for McpTestBuilder
impl Unpin for McpTestBuilder
impl UnsafeUnpin for McpTestBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.