pub struct ServerEntry {
pub id: String,
pub command: String,
pub status: ServerStatus,
}Expand description
Represents a configured server entry for output.
§Examples
use mcp_execution_cli::commands::server::{ServerEntry, ServerStatus};
let entry = ServerEntry {
id: "github".to_string(),
command: "github-mcp-server".to_string(),
status: ServerStatus::Available,
};
assert_eq!(entry.id, "github");Fields§
§id: StringServer identifier.
command: StringCommand used to start the server.
status: ServerStatusCurrent server status. For stdio, a PATH lookup. For http/sse, a
well-formedness pre-check followed by the same MCP introspection
handshake server info/server validate use — but bounded to
LIST_AVAILABILITY_TIMEOUT rather than the entry’s full configured
timeout, so this is a time-bounded, best-effort signal. Run server validate <name> for an authoritative answer on one specific server.
Trait Implementations§
Source§impl Clone for ServerEntry
impl Clone for ServerEntry
Source§fn clone(&self) -> ServerEntry
fn clone(&self) -> ServerEntry
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 ServerEntry
impl Debug for ServerEntry
impl Eq for ServerEntry
Source§impl PartialEq for ServerEntry
impl PartialEq for ServerEntry
Source§impl Serialize for ServerEntry
impl Serialize for ServerEntry
impl StructuralPartialEq for ServerEntry
Auto Trait Implementations§
impl Freeze for ServerEntry
impl RefUnwindSafe for ServerEntry
impl Send for ServerEntry
impl Sync for ServerEntry
impl Unpin for ServerEntry
impl UnsafeUnpin for ServerEntry
impl UnwindSafe for ServerEntry
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.