pub struct McpAddCommand { /* private fields */ }Implementations§
Source§impl McpAddCommand
impl McpAddCommand
pub fn stdio(name: impl Into<String>, command: impl Into<String>) -> Self
pub fn http(name: impl Into<String>, url: impl Into<String>) -> Self
pub fn arg(self, value: impl Into<String>) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn bearer_token_env_var(self, env_var: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for McpAddCommand
impl Clone for McpAddCommand
Source§fn clone(&self) -> McpAddCommand
fn clone(&self) -> McpAddCommand
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 CodexCommand for McpAddCommand
impl CodexCommand for McpAddCommand
Auto Trait Implementations§
impl Freeze for McpAddCommand
impl RefUnwindSafe for McpAddCommand
impl Send for McpAddCommand
impl Sync for McpAddCommand
impl Unpin for McpAddCommand
impl UnsafeUnpin for McpAddCommand
impl UnwindSafe for McpAddCommand
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