pub struct QuestionInfo {
pub question: String,
pub header: String,
pub options: Vec<QuestionOption>,
pub multiple: Option<bool>,
pub custom: Option<bool>,
}Expand description
A single question item.
Fields§
§question: StringThe question text.
header: StringShort header/title for the question.
options: Vec<QuestionOption>Available options.
multiple: Option<bool>Whether multiple options can be selected.
custom: Option<bool>Whether custom free-form input is allowed.
Trait Implementations§
Source§impl Clone for QuestionInfo
impl Clone for QuestionInfo
Source§fn clone(&self) -> QuestionInfo
fn clone(&self) -> QuestionInfo
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 QuestionInfo
impl Debug for QuestionInfo
Source§impl<'de> Deserialize<'de> for QuestionInfo
impl<'de> Deserialize<'de> for QuestionInfo
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
Auto Trait Implementations§
impl Freeze for QuestionInfo
impl RefUnwindSafe for QuestionInfo
impl Send for QuestionInfo
impl Sync for QuestionInfo
impl Unpin for QuestionInfo
impl UnwindSafe for QuestionInfo
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