pub struct QuestionAnswer {
pub selected: Vec<String>,
pub note: Option<String>,
}Expand description
One question’s answer in Op::QuestionResponse.
Fields§
§selected: Vec<String>Selected option labels. Multi-select answers carry one entry per selected option; empty when the user only typed free text.
note: Option<String>Free text the user typed: a note attached to the selection, or —
when selected is empty — the answer itself.
Trait Implementations§
Source§impl Clone for QuestionAnswer
impl Clone for QuestionAnswer
Source§impl Debug for QuestionAnswer
impl Debug for QuestionAnswer
Source§impl<'de> Deserialize<'de> for QuestionAnswer
impl<'de> Deserialize<'de> for QuestionAnswer
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 PartialEq for QuestionAnswer
impl PartialEq for QuestionAnswer
Source§impl Serialize for QuestionAnswer
impl Serialize for QuestionAnswer
impl StructuralPartialEq for QuestionAnswer
Auto Trait Implementations§
impl Freeze for QuestionAnswer
impl RefUnwindSafe for QuestionAnswer
impl Send for QuestionAnswer
impl Sync for QuestionAnswer
impl Unpin for QuestionAnswer
impl UnsafeUnpin for QuestionAnswer
impl UnwindSafe for QuestionAnswer
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