pub struct McpServeConfig {
pub name: String,
pub version: String,
pub transport: McpServerTransport,
}Expand description
Configuration for running as an MCP server.
Fields§
§name: StringHuman-readable name shown in tools/list.
version: StringServer version reported during initialize.
transport: McpServerTransportTransport mode.
Trait Implementations§
Source§impl Clone for McpServeConfig
impl Clone for McpServeConfig
Source§fn clone(&self) -> McpServeConfig
fn clone(&self) -> McpServeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 McpServeConfig
impl Debug for McpServeConfig
Source§impl Default for McpServeConfig
impl Default for McpServeConfig
Source§fn default() -> McpServeConfig
fn default() -> McpServeConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for McpServeConfig
impl RefUnwindSafe for McpServeConfig
impl Send for McpServeConfig
impl Sync for McpServeConfig
impl Unpin for McpServeConfig
impl UnsafeUnpin for McpServeConfig
impl UnwindSafe for McpServeConfig
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