pub struct McpServerConfig {Show 18 fields
pub name: String,
pub binary: String,
pub enabled: bool,
pub display_in_web: bool,
pub port: u16,
pub crate_path: PathBuf,
pub display_name: String,
pub description: String,
pub capabilities: Vec<String>,
pub schemas: Vec<SchemaDefinition>,
pub oauth: OAuthRequirement,
pub tools: HashMap<String, ToolMetadata>,
pub model_config: Option<ToolModelConfig>,
pub env_vars: Vec<String>,
pub version: String,
pub host: String,
pub module_name: String,
pub protocol: String,
}Fields§
§name: String§binary: String§enabled: bool§display_in_web: bool§port: u16§crate_path: PathBuf§display_name: String§description: String§capabilities: Vec<String>§schemas: Vec<SchemaDefinition>§oauth: OAuthRequirement§tools: HashMap<String, ToolMetadata>§model_config: Option<ToolModelConfig>§env_vars: Vec<String>§version: String§host: String§module_name: String§protocol: StringImplementations§
Trait Implementations§
Source§impl Clone for McpServerConfig
impl Clone for McpServerConfig
Source§fn clone(&self) -> McpServerConfig
fn clone(&self) -> McpServerConfig
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 McpServerConfig
impl Debug for McpServerConfig
Source§impl<'de> Deserialize<'de> for McpServerConfig
impl<'de> Deserialize<'de> for McpServerConfig
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 McpServerConfig
impl RefUnwindSafe for McpServerConfig
impl Send for McpServerConfig
impl Sync for McpServerConfig
impl Unpin for McpServerConfig
impl UnwindSafe for McpServerConfig
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