pub struct AllOfQuestion {
pub questions: Vec<Question>,
}Expand description
Configuration for an AllOf question (a group of questions that are all answered).
Used for nested structs and struct enum variants.
Fields§
§questions: Vec<Question>The questions in this group.
Implementations§
Source§impl AllOfQuestion
impl AllOfQuestion
Sourcepub fn new(questions: Vec<Question>) -> AllOfQuestion
pub fn new(questions: Vec<Question>) -> AllOfQuestion
Create a new AllOf question with the given questions.
Sourcepub fn empty() -> AllOfQuestion
pub fn empty() -> AllOfQuestion
Create an empty AllOf question.
Sourcepub fn questions_mut(&mut self) -> &mut Vec<Question>
pub fn questions_mut(&mut self) -> &mut Vec<Question>
Get a mutable reference to the questions.
Trait Implementations§
Source§impl Clone for AllOfQuestion
impl Clone for AllOfQuestion
Source§fn clone(&self) -> AllOfQuestion
fn clone(&self) -> AllOfQuestion
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 AllOfQuestion
impl Debug for AllOfQuestion
Source§impl PartialEq for AllOfQuestion
impl PartialEq for AllOfQuestion
impl StructuralPartialEq for AllOfQuestion
Auto Trait Implementations§
impl Freeze for AllOfQuestion
impl RefUnwindSafe for AllOfQuestion
impl Send for AllOfQuestion
impl Sync for AllOfQuestion
impl Unpin for AllOfQuestion
impl UnwindSafe for AllOfQuestion
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