pub struct ServerCapabilitiesBuilder { /* private fields */ }Implementations§
Source§impl ServerCapabilitiesBuilder
impl ServerCapabilitiesBuilder
pub fn enable_tools(self) -> Self
pub fn enable_resources(self) -> Self
pub fn enable_prompts(self) -> Self
pub fn enable_logging(self) -> Self
pub fn enable_sampling(self) -> Self
Sourcepub fn enable_sampling_with_tools(self) -> Self
pub fn enable_sampling_with_tools(self) -> Self
Enable sampling with tool support (MCP 2025-11-25)
Sourcepub fn enable_elicitation(self) -> Self
pub fn enable_elicitation(self) -> Self
Enable form-only elicitation (backwards compatible default)
Sourcepub fn enable_elicitation_modes(self, form: bool, url: bool) -> Self
pub fn enable_elicitation_modes(self, form: bool, url: bool) -> Self
Enable elicitation with specific modes (MCP 2025-11-25)
Sourcepub fn enable_tasks(self) -> Self
pub fn enable_tasks(self) -> Self
Enable tasks capability (MCP 2025-11-25 experimental)
Sourcepub fn enable_tasks_basic(self) -> Self
pub fn enable_tasks_basic(self) -> Self
Enable basic tasks capability without request augmentation
pub fn build(self) -> ServerCapabilities
Trait Implementations§
Source§impl Default for ServerCapabilitiesBuilder
impl Default for ServerCapabilitiesBuilder
Source§fn default() -> ServerCapabilitiesBuilder
fn default() -> ServerCapabilitiesBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServerCapabilitiesBuilder
impl RefUnwindSafe for ServerCapabilitiesBuilder
impl Send for ServerCapabilitiesBuilder
impl Sync for ServerCapabilitiesBuilder
impl Unpin for ServerCapabilitiesBuilder
impl UnwindSafe for ServerCapabilitiesBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more