pub struct McpClientBuilder { /* private fields */ }
Expand description
Client builder for easier construction
Implementations§
Source§impl McpClientBuilder
impl McpClientBuilder
Sourcepub fn capabilities(self, capabilities: ClientCapabilities) -> Self
pub fn capabilities(self, capabilities: ClientCapabilities) -> Self
Set client capabilities
Sourcepub fn config(self, config: ClientConfig) -> Self
pub fn config(self, config: ClientConfig) -> Self
Set client configuration
Sourcepub fn request_timeout(self, timeout_ms: u64) -> Self
pub fn request_timeout(self, timeout_ms: u64) -> Self
Set request timeout
Sourcepub fn max_retries(self, retries: u32) -> Self
pub fn max_retries(self, retries: u32) -> Self
Set maximum retries
Sourcepub fn validate_requests(self, validate: bool) -> Self
pub fn validate_requests(self, validate: bool) -> Self
Enable or disable request validation
Sourcepub fn validate_responses(self, validate: bool) -> Self
pub fn validate_responses(self, validate: bool) -> Self
Enable or disable response validation
Auto Trait Implementations§
impl Freeze for McpClientBuilder
impl RefUnwindSafe for McpClientBuilder
impl Send for McpClientBuilder
impl Sync for McpClientBuilder
impl Unpin 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