pub struct McpContext {
pub server_name: Option<String>,
pub server_url: Option<String>,
pub transport: Option<String>,
pub verified: Option<bool>,
pub capabilities: Option<Vec<String>>,
}Expand description
MCP server context.
Fields§
§server_name: Option<String>§server_url: Option<String>§transport: Option<String>§verified: Option<bool>§capabilities: Option<Vec<String>>Trait Implementations§
Source§impl Clone for McpContext
impl Clone for McpContext
Source§fn clone(&self) -> McpContext
fn clone(&self) -> McpContext
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 McpContext
impl Debug for McpContext
Source§impl Default for McpContext
impl Default for McpContext
Source§fn default() -> McpContext
fn default() -> McpContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpContext
impl<'de> Deserialize<'de> for McpContext
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 McpContext
impl RefUnwindSafe for McpContext
impl Send for McpContext
impl Sync for McpContext
impl Unpin for McpContext
impl UnsafeUnpin for McpContext
impl UnwindSafe for McpContext
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