pub struct PromptManager { /* private fields */ }
Expand description
Prompt manager for MCP server
Implementations§
Source§impl PromptManager
impl PromptManager
Sourcepub fn new(server: Arc<RwLock<CodePrismMcpServer>>) -> Self
pub fn new(server: Arc<RwLock<CodePrismMcpServer>>) -> Self
Create a new prompt manager
Sourcepub async fn list_prompts(
&self,
_params: ListPromptsParams,
) -> Result<ListPromptsResult>
pub async fn list_prompts( &self, _params: ListPromptsParams, ) -> Result<ListPromptsResult>
List available prompts
Sourcepub async fn get_prompt(
&self,
params: GetPromptParams,
) -> Result<GetPromptResult>
pub async fn get_prompt( &self, params: GetPromptParams, ) -> Result<GetPromptResult>
Get a specific prompt
Auto Trait Implementations§
impl Freeze for PromptManager
impl !RefUnwindSafe for PromptManager
impl Send for PromptManager
impl Sync for PromptManager
impl Unpin for PromptManager
impl !UnwindSafe for PromptManager
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more