pub struct QuestionAnswer {
pub header: String,
pub question: String,
pub selected: Vec<String>,
pub note: Option<String>,
}Expand description
One question’s resolved answer, keyed by its header + text so the model can unambiguously match answers to questions when several are batched.
Fields§
§header: String§question: String§selected: Vec<String>Selected option labels; includes the typed “Other” text when used. Empty means the user skipped this question.
note: Option<String>Optional free-text note the user attached to this question.
Trait Implementations§
Source§impl Clone for QuestionAnswer
impl Clone for QuestionAnswer
Source§fn clone(&self) -> QuestionAnswer
fn clone(&self) -> QuestionAnswer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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