pub struct ElicitationBuilder;Expand description
Core MCP protocol types, errors, and specification compliance Builder for creating common elicitation patterns
Implementations§
Source§impl ElicitationBuilder
impl ElicitationBuilder
Sourcepub fn text_input(
message: impl Into<String>,
field_name: impl Into<String>,
field_description: impl Into<String>,
) -> ElicitCreateRequest
pub fn text_input( message: impl Into<String>, field_name: impl Into<String>, field_description: impl Into<String>, ) -> ElicitCreateRequest
Create a simple text input elicitation (MCP spec compliant)
Sourcepub fn number_input(
message: impl Into<String>,
field_name: impl Into<String>,
field_description: impl Into<String>,
min: Option<f64>,
max: Option<f64>,
) -> ElicitCreateRequest
pub fn number_input( message: impl Into<String>, field_name: impl Into<String>, field_description: impl Into<String>, min: Option<f64>, max: Option<f64>, ) -> ElicitCreateRequest
Create a number input elicitation (MCP spec compliant)
Sourcepub fn confirm(message: impl Into<String>) -> ElicitCreateRequest
pub fn confirm(message: impl Into<String>) -> ElicitCreateRequest
Create a boolean confirmation elicitation (MCP spec compliant)
Auto Trait Implementations§
impl Freeze for ElicitationBuilder
impl RefUnwindSafe for ElicitationBuilder
impl Send for ElicitationBuilder
impl Sync for ElicitationBuilder
impl Unpin for ElicitationBuilder
impl UnwindSafe for ElicitationBuilder
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 moreCreates a shared type from an unshared type.