pub struct CreateElicitationResult {
pub action: ElicitationAction,
pub content: Option<Value>,
}Expand description
The result returned by a client in response to an elicitation request.
Contains the user’s decision (accept/decline/cancel) and optionally their input data if they chose to accept the request.
Fields§
§action: ElicitationActionThe user’s decision on how to handle the elicitation request
content: Option<Value>The actual data provided by the user, if they accepted the request. Must conform to the JSON schema specified in the original request. Only present when action is Accept.
Trait Implementations§
Source§impl Clone for CreateElicitationResult
impl Clone for CreateElicitationResult
Source§fn clone(&self) -> CreateElicitationResult
fn clone(&self) -> CreateElicitationResult
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 CreateElicitationResult
impl Debug for CreateElicitationResult
Source§impl<'de> Deserialize<'de> for CreateElicitationResult
impl<'de> Deserialize<'de> for CreateElicitationResult
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<CreateElicitationResult> for ClientResult
impl From<CreateElicitationResult> for ClientResult
Source§fn from(value: CreateElicitationResult) -> Self
fn from(value: CreateElicitationResult) -> Self
Converts to this type from the input type.
Source§impl From<CreateElicitationResult> for ServerResult
impl From<CreateElicitationResult> for ServerResult
Source§fn from(value: CreateElicitationResult) -> Self
fn from(value: CreateElicitationResult) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for CreateElicitationResult
impl JsonSchema for CreateElicitationResult
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 PartialEq for CreateElicitationResult
impl PartialEq for CreateElicitationResult
Source§impl Serialize for CreateElicitationResult
impl Serialize for CreateElicitationResult
impl StructuralPartialEq for CreateElicitationResult
Auto Trait Implementations§
impl Freeze for CreateElicitationResult
impl RefUnwindSafe for CreateElicitationResult
impl Send for CreateElicitationResult
impl Sync for CreateElicitationResult
impl Unpin for CreateElicitationResult
impl UnwindSafe for CreateElicitationResult
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