#[non_exhaustive]pub struct ElicitationRequest {
pub mcp_server_name: String,
pub message: String,
pub mode: Option<String>,
pub url: Option<String>,
pub elicitation_id: Option<String>,
pub requested_schema: Option<Value>,
pub property_order: Option<Vec<String>>,
pub title: Option<String>,
pub display_name: Option<String>,
pub description: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Source: binary elicitation schema
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mcp_server_name: StringMCP server asking for input.
message: StringText shown to the user.
mode: Option<String>“form” or “url”.
url: Option<String>URL to open (url mode).
elicitation_id: Option<String>Elicitation id from the MCP server.
requested_schema: Option<Value>JSON schema of the requested form fields.
property_order: Option<Vec<String>>Top-level keys of requested_schema.properties, in the server’s order.
title: Option<String>Permission-display title from the MCP server.
display_name: Option<String>Short tool or server label from the MCP server.
description: Option<String>Permission-display subtitle from the MCP server.
extra: HashMap<String, Value>Fields not named above.
Trait Implementations§
Source§impl Clone for ElicitationRequest
impl Clone for ElicitationRequest
Source§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 Forget for ElicitationRequest
impl Freeze for ElicitationRequest
impl Move 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