pub struct McpServerInfo {
pub name: String,
pub version: String,
pub instructions: Option<String>,
}Expand description
MCP 服务器信息
MCP 服务器在初始化握手时返回的元信息
Fields§
§name: String服务器名称
version: String服务器版本
instructions: Option<String>服务器说明
Trait Implementations§
Source§impl Clone for McpServerInfo
impl Clone for McpServerInfo
Source§fn clone(&self) -> McpServerInfo
fn clone(&self) -> McpServerInfo
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 McpServerInfo
impl Debug for McpServerInfo
Source§impl<'de> Deserialize<'de> for McpServerInfo
impl<'de> Deserialize<'de> for McpServerInfo
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 McpServerInfo
impl RefUnwindSafe for McpServerInfo
impl Send for McpServerInfo
impl Sync for McpServerInfo
impl Unpin for McpServerInfo
impl UnsafeUnpin for McpServerInfo
impl UnwindSafe for McpServerInfo
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