pub struct AskUserQuestionInput {
pub questions: Vec<Question>,
pub answers: Option<HashMap<String, String>>,
pub metadata: Option<QuestionMetadata>,
}Expand description
Input for the AskUserQuestion tool - asks the user questions.
Fields§
§questions: Vec<Question>Questions to ask the user (1-4 questions)
answers: Option<HashMap<String, String>>User answers collected by the permission component
metadata: Option<QuestionMetadata>Optional metadata for tracking and analytics
Trait Implementations§
Source§impl Clone for AskUserQuestionInput
impl Clone for AskUserQuestionInput
Source§fn clone(&self) -> AskUserQuestionInput
fn clone(&self) -> AskUserQuestionInput
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 AskUserQuestionInput
impl Debug for AskUserQuestionInput
Source§impl<'de> Deserialize<'de> for AskUserQuestionInput
impl<'de> Deserialize<'de> for AskUserQuestionInput
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<AskUserQuestionInput> for ToolInput
impl From<AskUserQuestionInput> for ToolInput
Source§fn from(input: AskUserQuestionInput) -> Self
fn from(input: AskUserQuestionInput) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AskUserQuestionInput
impl PartialEq for AskUserQuestionInput
Source§impl Serialize for AskUserQuestionInput
impl Serialize for AskUserQuestionInput
impl StructuralPartialEq for AskUserQuestionInput
Auto Trait Implementations§
impl Freeze for AskUserQuestionInput
impl RefUnwindSafe for AskUserQuestionInput
impl Send for AskUserQuestionInput
impl Sync for AskUserQuestionInput
impl Unpin for AskUserQuestionInput
impl UnsafeUnpin for AskUserQuestionInput
impl UnwindSafe for AskUserQuestionInput
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