pub struct MCPClientConfig {
pub server_url: String,
pub timeout: u64,
pub max_connections: usize,
pub retry_attempts: u32,
pub available_tools: Vec<String>,
}Expand description
MCP client configuration
Fields§
§server_url: StringMCP server endpoint
timeout: u64Connection timeout in seconds
max_connections: usizeMaximum concurrent connections
retry_attempts: u32Retry configuration
available_tools: Vec<String>Tool registry
Trait Implementations§
Source§impl Clone for MCPClientConfig
impl Clone for MCPClientConfig
Source§fn clone(&self) -> MCPClientConfig
fn clone(&self) -> MCPClientConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 MCPClientConfig
impl Debug for MCPClientConfig
Source§impl Default for MCPClientConfig
impl Default for MCPClientConfig
Source§impl<'de> Deserialize<'de> for MCPClientConfig
impl<'de> Deserialize<'de> for MCPClientConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MCPClientConfig
impl RefUnwindSafe for MCPClientConfig
impl Send for MCPClientConfig
impl Sync for MCPClientConfig
impl Unpin for MCPClientConfig
impl UnwindSafe for MCPClientConfig
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