pub struct UserInputAnswer {
pub question_id: String,
pub selected_label: Option<String>,
pub selected_labels: Vec<String>,
pub free_text: Option<String>,
pub note: Option<String>,
}Expand description
One question’s answer, as sent in userInput/answer or
userInput/interrupt and as recorded in userInput/settled.
Fields§
§question_id: StringThe id of the question this answers.
selected_label: Option<String>The label of the chosen option, for a single question.
selected_labels: Vec<String>The labels of the chosen options for a multiple question, within its
selection bounds; omitted when empty.
free_text: Option<String>A free-form answer, at most 500 characters.
note: Option<String>An optional comment the user adds to the answer, at most 500 characters.
Trait Implementations§
Source§impl Clone for UserInputAnswer
impl Clone for UserInputAnswer
Source§impl Debug for UserInputAnswer
impl Debug for UserInputAnswer
Source§impl<'de> Deserialize<'de> for UserInputAnswer
impl<'de> Deserialize<'de> for UserInputAnswer
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 UserInputAnswer
Source§impl PartialEq for UserInputAnswer
impl PartialEq for UserInputAnswer
Source§impl Serialize for UserInputAnswer
impl Serialize for UserInputAnswer
impl StructuralPartialEq for UserInputAnswer
Auto Trait Implementations§
impl Freeze for UserInputAnswer
impl RefUnwindSafe for UserInputAnswer
impl Send for UserInputAnswer
impl Sync for UserInputAnswer
impl Unpin for UserInputAnswer
impl UnsafeUnpin for UserInputAnswer
impl UnwindSafe for UserInputAnswer
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