pub struct McpClientBuilder { /* private fields */ }Expand description
MCP Client Builder - Convenient client configuration
Implementations§
Source§impl McpClientBuilder
impl McpClientBuilder
Sourcepub fn with_auth_handler<H: AuthHandler + 'static>(self, handler: H) -> Self
pub fn with_auth_handler<H: AuthHandler + 'static>(self, handler: H) -> Self
Set authentication handler
Sourcepub fn with_streamable_http_server(self, endpoint: &str) -> Self
pub fn with_streamable_http_server(self, endpoint: &str) -> Self
Configure Streamable HTTP transport.
Sourcepub fn with_streamable_http_auth_token(self, token: &str) -> Self
pub fn with_streamable_http_auth_token(self, token: &str) -> Self
Set bearer token for Streamable HTTP transport.
Auto Trait Implementations§
impl Freeze for McpClientBuilder
impl !RefUnwindSafe for McpClientBuilder
impl Send for McpClientBuilder
impl Sync for McpClientBuilder
impl Unpin for McpClientBuilder
impl UnsafeUnpin for McpClientBuilder
impl !UnwindSafe for McpClientBuilder
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