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 on_url_elicitation<T, Fut>(self, handler: T) -> Self
pub fn trace_context(self, trace_context: TraceContext) -> Self
pub fn tool_timeout(self, timeout: Duration) -> Self
Sourcepub fn tool_filter(self, filter: ToolFilter) -> Self
pub fn tool_filter(self, filter: ToolFilter) -> Self
Filter which tools the servers expose and the gateway serves.
pub async fn build(self) -> McpTest
Trait Implementations§
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