pub struct McpSourceRef {
pub editability: String,
pub file: Option<McpSourceFile>,
pub id: String,
pub kind: String,
pub plugin: Option<McpSourcePlugin>,
}Expand description
Canonical identity and location of the effective MCP server declaration. The declaration is uniquely addressed by this source id together with the discovered server name.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§editability: StringOpen semantic editability identifier. Known values are editable and read-only.
file: Option<McpSourceFile>Configuration file location, when the declaration is file-backed.
id: StringOpaque stable identity for the configuration source. Clients must not parse this value.
kind: StringOpen source-kind identifier. Known values include user, workspace, invocation, plugin, builtin, and device-registry.
plugin: Option<McpSourcePlugin>Plugin identity, when the declaration is plugin-provided.
Trait Implementations§
Source§impl Clone for McpSourceRef
impl Clone for McpSourceRef
Source§fn clone(&self) -> McpSourceRef
fn clone(&self) -> McpSourceRef
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 McpSourceRef
impl Debug for McpSourceRef
Source§impl Default for McpSourceRef
impl Default for McpSourceRef
Source§fn default() -> McpSourceRef
fn default() -> McpSourceRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpSourceRef
impl<'de> Deserialize<'de> for McpSourceRef
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 McpSourceRef
impl RefUnwindSafe for McpSourceRef
impl Send for McpSourceRef
impl Sync for McpSourceRef
impl Unpin for McpSourceRef
impl UnsafeUnpin for McpSourceRef
impl UnwindSafe for McpSourceRef
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