pub struct ProxyCatalog {
pub tools: Vec<Tool>,
pub resources: Vec<Resource>,
pub resource_templates: Vec<ResourceTemplate>,
pub prompts: Vec<Prompt>,
}Expand description
Catalog of remote definitions used to register proxy handlers.
Fields§
§tools: Vec<Tool>Remote tool definitions.
resources: Vec<Resource>Remote resource definitions.
resource_templates: Vec<ResourceTemplate>Remote resource templates.
prompts: Vec<Prompt>Remote prompt definitions.
Implementations§
Source§impl ProxyCatalog
impl ProxyCatalog
Sourcepub fn from_backend<B: ProxyBackend + ?Sized>(
backend: &mut B,
) -> McpResult<Self>
pub fn from_backend<B: ProxyBackend + ?Sized>( backend: &mut B, ) -> McpResult<Self>
Builds a catalog by querying a proxy backend.
Sourcepub fn from_client(client: &mut Client) -> McpResult<Self>
pub fn from_client(client: &mut Client) -> McpResult<Self>
Builds a catalog by querying a client.
Trait Implementations§
Source§impl Clone for ProxyCatalog
impl Clone for ProxyCatalog
Source§fn clone(&self) -> ProxyCatalog
fn clone(&self) -> ProxyCatalog
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 ProxyCatalog
impl Debug for ProxyCatalog
Source§impl Default for ProxyCatalog
impl Default for ProxyCatalog
Source§fn default() -> ProxyCatalog
fn default() -> ProxyCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProxyCatalog
impl RefUnwindSafe for ProxyCatalog
impl Send for ProxyCatalog
impl Sync for ProxyCatalog
impl Unpin for ProxyCatalog
impl UnwindSafe for ProxyCatalog
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).