pub enum PluginMcpTransport {
Stdio {
command: String,
args: Vec<String>,
env: BTreeMap<String, String>,
cwd: Option<String>,
},
StreamableHttp {
url: String,
headers: BTreeMap<String, String>,
},
Sse {
url: String,
headers: BTreeMap<String, String>,
},
}Expand description
Portable MCP transport data. Placeholder strings remain unexpanded.
Variants§
Trait Implementations§
Source§impl Clone for PluginMcpTransport
impl Clone for PluginMcpTransport
Source§fn clone(&self) -> PluginMcpTransport
fn clone(&self) -> PluginMcpTransport
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 PluginMcpTransport
impl Debug for PluginMcpTransport
impl Eq for PluginMcpTransport
Source§impl PartialEq for PluginMcpTransport
impl PartialEq for PluginMcpTransport
impl StructuralPartialEq for PluginMcpTransport
Auto Trait Implementations§
impl Freeze for PluginMcpTransport
impl RefUnwindSafe for PluginMcpTransport
impl Send for PluginMcpTransport
impl Sync for PluginMcpTransport
impl Unpin for PluginMcpTransport
impl UnsafeUnpin for PluginMcpTransport
impl UnwindSafe for PluginMcpTransport
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