pub struct ElicitationRequest {
pub message: String,
pub requested_schema: Value,
}Expand description
Server-initiated request for user input
Fields§
§message: StringClear, human-readable explanation of what information is needed and why
requested_schema: ValueJSON Schema that defines the expected structure of the response Limited to flat objects with primitive types to simplify client implementation
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 · 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 Default for ElicitationRequest
impl Default for ElicitationRequest
Source§fn default() -> ElicitationRequest
fn default() -> ElicitationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ElicitationRequest
impl<'de> Deserialize<'de> for ElicitationRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ElicitationRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ElicitationRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ElicitationRequest
impl JsonSchema for ElicitationRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for ElicitationRequest
impl Serialize for ElicitationRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 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