pub struct ServerCapabilitiesBuilderState<const EXPERIMENTAL: bool = false, const LOGGING: bool = false, const COMPLETIONS: bool = false, const PROMPTS: bool = false, const RESOURCES: bool = false, const TOOLS: bool = false>;Expand description
Type-state for ServerCapabilitiesBuilder
Each const generic represents whether a capability is enabled:
- EXPERIMENTAL: Experimental capabilities
- LOGGING: Logging capabilities
- COMPLETIONS: Completion capabilities
- PROMPTS: Prompt capabilities
- RESOURCES: Resource capabilities
- TOOLS: Tool capabilities
Trait Implementations§
Source§impl<const EXPERIMENTAL: bool, const LOGGING: bool, const COMPLETIONS: bool, const PROMPTS: bool, const RESOURCES: bool, const TOOLS: bool> Clone for ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
impl<const EXPERIMENTAL: bool, const LOGGING: bool, const COMPLETIONS: bool, const PROMPTS: bool, const RESOURCES: bool, const TOOLS: bool> Clone for ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
Source§fn clone(
&self,
) -> ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
fn clone( &self, ) -> ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<const EXPERIMENTAL: bool, const LOGGING: bool, const COMPLETIONS: bool, const PROMPTS: bool, const RESOURCES: bool, const TOOLS: bool> Freeze for ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
impl<const EXPERIMENTAL: bool, const LOGGING: bool, const COMPLETIONS: bool, const PROMPTS: bool, const RESOURCES: bool, const TOOLS: bool> RefUnwindSafe for ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
impl<const EXPERIMENTAL: bool, const LOGGING: bool, const COMPLETIONS: bool, const PROMPTS: bool, const RESOURCES: bool, const TOOLS: bool> Send for ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
impl<const EXPERIMENTAL: bool, const LOGGING: bool, const COMPLETIONS: bool, const PROMPTS: bool, const RESOURCES: bool, const TOOLS: bool> Sync for ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
impl<const EXPERIMENTAL: bool, const LOGGING: bool, const COMPLETIONS: bool, const PROMPTS: bool, const RESOURCES: bool, const TOOLS: bool> Unpin for ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
impl<const EXPERIMENTAL: bool, const LOGGING: bool, const COMPLETIONS: bool, const PROMPTS: bool, const RESOURCES: bool, const TOOLS: bool> UnwindSafe for ServerCapabilitiesBuilderState<EXPERIMENTAL, LOGGING, COMPLETIONS, PROMPTS, RESOURCES, TOOLS>
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)