pub struct UserInputAnswerParams {
pub session_id: String,
pub command_id: String,
pub user_input_id: String,
pub answers: Vec<UserInputAnswer>,
}Expand description
userInput/answer params: answer every question.
Each answer carries questionId then exactly one of selectedLabel (single
mode), selectedLabels (multiple mode, within min/max bounds), or
freeText (<=500 chars); plus an optional note (<=500). Answers that do
not match the prompt fail -32057 userInputAnswerInvalid. Image
attachments are a reserved field in v1, rejected if sent, because the
blob-upload path they reference is reserved in the protocol spec.
Fields§
§session_id: StringThe target session.
command_id: StringThe idempotency handle (UUIDv7).
user_input_id: StringThe prompt being answered.
answers: Vec<UserInputAnswer>One entry per question.
Trait Implementations§
Source§impl Clone for UserInputAnswerParams
impl Clone for UserInputAnswerParams
Source§impl Debug for UserInputAnswerParams
impl Debug for UserInputAnswerParams
Source§impl<'de> Deserialize<'de> for UserInputAnswerParams
impl<'de> Deserialize<'de> for UserInputAnswerParams
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
impl Eq for UserInputAnswerParams
Source§impl PartialEq for UserInputAnswerParams
impl PartialEq for UserInputAnswerParams
Source§impl Serialize for UserInputAnswerParams
impl Serialize for UserInputAnswerParams
impl StructuralPartialEq for UserInputAnswerParams
Auto Trait Implementations§
impl Freeze for UserInputAnswerParams
impl RefUnwindSafe for UserInputAnswerParams
impl Send for UserInputAnswerParams
impl Sync for UserInputAnswerParams
impl Unpin for UserInputAnswerParams
impl UnsafeUnpin for UserInputAnswerParams
impl UnwindSafe for UserInputAnswerParams
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