pub struct McpServerId(pub String);Expand description
Unique identifier for a registered MCP server.
Each MCP server in a McpServerManager is addressed by its McpServerId.
The inner string is typically a short, human-readable name such as "filesystem"
or "github".
§Example
use agentkit_mcp::McpServerId;
let id = McpServerId::new("filesystem");
assert_eq!(id.to_string(), "filesystem");Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for McpServerId
impl Clone for McpServerId
Source§fn clone(&self) -> McpServerId
fn clone(&self) -> McpServerId
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 McpServerId
impl Debug for McpServerId
Source§impl Default for McpServerId
impl Default for McpServerId
Source§fn default() -> McpServerId
fn default() -> McpServerId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpServerId
impl<'de> Deserialize<'de> for McpServerId
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
Source§impl Display for McpServerId
impl Display for McpServerId
Source§impl Hash for McpServerId
impl Hash for McpServerId
Source§impl Ord for McpServerId
impl Ord for McpServerId
Source§fn cmp(&self, other: &McpServerId) -> Ordering
fn cmp(&self, other: &McpServerId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for McpServerId
impl PartialEq for McpServerId
Source§impl PartialOrd for McpServerId
impl PartialOrd for McpServerId
Source§impl Serialize for McpServerId
impl Serialize for McpServerId
impl Eq for McpServerId
impl StructuralPartialEq for McpServerId
Auto Trait Implementations§
impl Freeze for McpServerId
impl RefUnwindSafe for McpServerId
impl Send for McpServerId
impl Sync for McpServerId
impl Unpin for McpServerId
impl UnsafeUnpin for McpServerId
impl UnwindSafe for McpServerId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.