pub struct EchoedArgument(/* private fields */);Expand description
A piece of configured launch text that may be shown to callers: an option name or a program name, never a value, an inline program or an assignment’s value.
The text is cut at the first = or whitespace, escaped and bounded to
256 bytes (the escaped text is what is bounded), because
configured arguments can hold secrets and reach MCP clients unredacted.
§Examples
use mcpls_core::error::EchoedArgument;
assert_eq!(EchoedArgument::name("--token=abc").as_str(), "--token");
assert_eq!(EchoedArgument::name("API_KEY=abc").as_str(), "API_KEY");Implementations§
Trait Implementations§
Source§impl Clone for EchoedArgument
impl Clone for EchoedArgument
Source§impl Debug for EchoedArgument
impl Debug for EchoedArgument
Source§impl Display for EchoedArgument
impl Display for EchoedArgument
impl Eq for EchoedArgument
Source§impl PartialEq for EchoedArgument
impl PartialEq for EchoedArgument
impl StructuralPartialEq for EchoedArgument
Auto Trait Implementations§
impl Freeze for EchoedArgument
impl RefUnwindSafe for EchoedArgument
impl Send for EchoedArgument
impl Sync for EchoedArgument
impl Unpin for EchoedArgument
impl UnsafeUnpin for EchoedArgument
impl UnwindSafe for EchoedArgument
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.