pub struct ServerCapabilityInfo {
pub tools: bool,
pub resources: bool,
pub resources_subscribe: bool,
pub prompts: bool,
pub logging: bool,
}Expand description
Server capability information accessible from handlers.
This provides a simplified view of what capabilities this server advertises.
Fields§
§tools: boolWhether the server supports tools.
resources: boolWhether the server supports resources.
resources_subscribe: boolWhether resources support subscriptions.
prompts: boolWhether the server supports prompts.
logging: boolWhether the server supports logging.
Implementations§
Source§impl ServerCapabilityInfo
impl ServerCapabilityInfo
Sourcepub fn with_tools(self) -> Self
pub fn with_tools(self) -> Self
Creates capability info with tools enabled.
Sourcepub fn with_resources(self, subscribe: bool) -> Self
pub fn with_resources(self, subscribe: bool) -> Self
Creates capability info with resources enabled.
Sourcepub fn with_prompts(self) -> Self
pub fn with_prompts(self) -> Self
Creates capability info with prompts enabled.
Sourcepub fn with_logging(self) -> Self
pub fn with_logging(self) -> Self
Creates capability info with logging enabled.
Trait Implementations§
Source§impl Clone for ServerCapabilityInfo
impl Clone for ServerCapabilityInfo
Source§fn clone(&self) -> ServerCapabilityInfo
fn clone(&self) -> ServerCapabilityInfo
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 ServerCapabilityInfo
impl Debug for ServerCapabilityInfo
Source§impl Default for ServerCapabilityInfo
impl Default for ServerCapabilityInfo
Source§fn default() -> ServerCapabilityInfo
fn default() -> ServerCapabilityInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServerCapabilityInfo
impl RefUnwindSafe for ServerCapabilityInfo
impl Send for ServerCapabilityInfo
impl Sync for ServerCapabilityInfo
impl Unpin for ServerCapabilityInfo
impl UnwindSafe for ServerCapabilityInfo
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).