pub struct ServerMetadata {
pub id: String,
pub name: String,
pub version: String,
pub supports_tools: bool,
pub supports_resources: bool,
pub supports_prompts: bool,
}Expand description
Server metadata for display.
Simplified representation of server information optimized for CLI output formatting.
Fields§
§id: StringServer identifier
name: StringServer name
version: StringServer version
supports_tools: boolWhether server supports tools
supports_resources: boolWhether server supports resources
supports_prompts: boolWhether server supports prompts
Trait Implementations§
Source§impl Clone for ServerMetadata
impl Clone for ServerMetadata
Source§fn clone(&self) -> ServerMetadata
fn clone(&self) -> ServerMetadata
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 Debug for ServerMetadata
impl Debug for ServerMetadata
Auto Trait Implementations§
impl Freeze for ServerMetadata
impl RefUnwindSafe for ServerMetadata
impl Send for ServerMetadata
impl Sync for ServerMetadata
impl Unpin for ServerMetadata
impl UnwindSafe for ServerMetadata
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