pub struct ElicitationRequest {
pub message: String,
pub requested_schema: Option<Value>,
pub mode: Option<ElicitationMode>,
pub elicitation_source: Option<String>,
pub url: Option<String>,
}Expand description
An incoming elicitation request from the CLI (provider side).
Received via elicitation.requested session event when the session was
created with request_elicitation: true. The provider should render a
form or dialog and return an ElicitationResult.
Fields§
§message: StringMessage describing what information is needed from the user.
requested_schema: Option<Value>JSON Schema describing the form fields to present.
mode: Option<ElicitationMode>Elicitation display mode.
elicitation_source: Option<String>The source that initiated the request (e.g. MCP server name).
url: Option<String>URL to open in the user’s browser (url mode only).
Trait Implementations§
Source§impl Clone for ElicitationRequest
impl Clone for ElicitationRequest
Source§fn clone(&self) -> ElicitationRequest
fn clone(&self) -> ElicitationRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ElicitationRequest
impl Debug for ElicitationRequest
Source§impl<'de> Deserialize<'de> for ElicitationRequest
impl<'de> Deserialize<'de> for ElicitationRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ElicitationRequest
impl RefUnwindSafe for ElicitationRequest
impl Send for ElicitationRequest
impl Sync for ElicitationRequest
impl Unpin for ElicitationRequest
impl UnsafeUnpin for ElicitationRequest
impl UnwindSafe for ElicitationRequest
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