pub struct ElicitRequestFormParams {
pub message: String,
pub requested_schema: ElicitRequestFormParamsRequestedSchema,
/* private fields */
}Expand description
Latest MCP Protocol 2026_07_28 The parameters for a request to elicit non-sensitive information from the user via a form in the client.
JSON schema
{
"description": "The parameters for a request to elicit non-sensitive information from the user via a form in the client.",
"type": "object",
"required": [
"message",
"requestedSchema"
],
"properties": {
"message": {
"description": "The message to present to the user describing what information is being requested.",
"type": "string"
},
"mode": {
"description": "The elicitation mode.",
"type": "string",
"const": "form"
},
"requestedSchema": {
"description": "A restricted subset of JSON Schema.\nOnly top-level properties are allowed, without nesting.",
"type": "object",
"required": [
"properties",
"type"
],
"properties": {
"$schema": {
"type": "string"
},
"properties": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/PrimitiveSchemaDefinition"
}
},
"required": {
"type": "array",
"items": {
"type": "string"
}
},
"type": {
"type": "string",
"const": "object"
}
}
}
}
}Fields§
§message: StringThe message to present to the user describing what information is being requested.
requested_schema: ElicitRequestFormParamsRequestedSchemaImplementations§
Trait Implementations§
Source§impl Clone for ElicitRequestFormParams
impl Clone for ElicitRequestFormParams
Source§fn clone(&self) -> ElicitRequestFormParams
fn clone(&self) -> ElicitRequestFormParams
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 ElicitRequestFormParams
impl Debug for ElicitRequestFormParams
Source§impl<'de> Deserialize<'de> for ElicitRequestFormParams
impl<'de> Deserialize<'de> for ElicitRequestFormParams
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
Source§impl From<ElicitRequestFormParams> for ElicitRequestParams
impl From<ElicitRequestFormParams> for ElicitRequestParams
Source§fn from(value: ElicitRequestFormParams) -> Self
fn from(value: ElicitRequestFormParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ElicitRequestFormParams
impl RefUnwindSafe for ElicitRequestFormParams
impl Send for ElicitRequestFormParams
impl Sync for ElicitRequestFormParams
impl Unpin for ElicitRequestFormParams
impl UnsafeUnpin for ElicitRequestFormParams
impl UnwindSafe for ElicitRequestFormParams
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