pub struct McpServerDef {
pub name: Option<String>,
pub transport: McpTransport,
pub visibility: Visibility,
pub targets: Vec<String>,
}Expand description
Parsed content of a single mcp/<name>/mcp.toml.
Fields§
§name: Option<String>Overrides the server’s directory name as its config key.
transport: McpTransport§visibility: Visibility§targets: Vec<String>Optional target filter — if empty, applies to all targets.
Trait Implementations§
Source§impl Clone for McpServerDef
impl Clone for McpServerDef
Source§impl Debug for McpServerDef
impl Debug for McpServerDef
impl Eq for McpServerDef
Source§impl PartialEq for McpServerDef
impl PartialEq for McpServerDef
impl StructuralPartialEq for McpServerDef
Auto Trait Implementations§
impl Freeze for McpServerDef
impl RefUnwindSafe for McpServerDef
impl Send for McpServerDef
impl Sync for McpServerDef
impl Unpin for McpServerDef
impl UnsafeUnpin for McpServerDef
impl UnwindSafe for McpServerDef
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.