pub enum McpSourceSpec {
File(McpFileSpec),
Inline {
servers: BTreeMap<String, McpServerConfig>,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for McpSourceSpec
impl Clone for McpSourceSpec
Source§fn clone(&self) -> McpSourceSpec
fn clone(&self) -> McpSourceSpec
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 McpSourceSpec
impl Debug for McpSourceSpec
Source§impl<'de> Deserialize<'de> for McpSourceSpec
impl<'de> Deserialize<'de> for McpSourceSpec
Source§fn deserialize<T: Deserializer<'de>>(deserializer: T) -> Result<Self, T::Error>
fn deserialize<T: Deserializer<'de>>(deserializer: T) -> Result<Self, T::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<McpFileSpec> for McpSourceSpec
impl From<McpFileSpec> for McpSourceSpec
Source§fn from(spec: McpFileSpec) -> Self
fn from(spec: McpFileSpec) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for McpSourceSpec
impl JsonSchema for McpSourceSpec
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for McpSourceSpec
impl PartialEq for McpSourceSpec
Source§fn eq(&self, other: &McpSourceSpec) -> bool
fn eq(&self, other: &McpSourceSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for McpSourceSpec
impl Serialize for McpSourceSpec
impl StructuralPartialEq for McpSourceSpec
Auto Trait Implementations§
impl Freeze for McpSourceSpec
impl RefUnwindSafe for McpSourceSpec
impl Send for McpSourceSpec
impl Sync for McpSourceSpec
impl Unpin for McpSourceSpec
impl UnsafeUnpin for McpSourceSpec
impl UnwindSafe for McpSourceSpec
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