pub struct ServerCatalogEntry { /* private fields */ }Implementations§
Source§impl ServerCatalogEntry
impl ServerCatalogEntry
pub fn new( name: impl Into<String>, description: impl Into<String>, instructions: Option<String>, status: McpServerStatus, auth_capability: McpServerAuthCapability, exposure: ToolExposure, tools: &[Tool], filter: &ToolFilter, ) -> Self
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn instructions(&self) -> Option<&str>
pub fn status(&self) -> &McpServerStatus
pub fn auth_capability(&self) -> McpServerAuthCapability
pub fn exposure(&self) -> &ToolExposure
pub fn tools(&self) -> &[CatalogTool]
pub fn status_entry(&self) -> McpServerStatusEntry
Trait Implementations§
Source§impl Clone for ServerCatalogEntry
impl Clone for ServerCatalogEntry
Source§fn clone(&self) -> ServerCatalogEntry
fn clone(&self) -> ServerCatalogEntry
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 ServerCatalogEntry
impl Debug for ServerCatalogEntry
Source§impl PartialEq for ServerCatalogEntry
impl PartialEq for ServerCatalogEntry
impl StructuralPartialEq for ServerCatalogEntry
Auto Trait Implementations§
impl Freeze for ServerCatalogEntry
impl RefUnwindSafe for ServerCatalogEntry
impl Send for ServerCatalogEntry
impl Sync for ServerCatalogEntry
impl Unpin for ServerCatalogEntry
impl UnsafeUnpin for ServerCatalogEntry
impl UnwindSafe for ServerCatalogEntry
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