#[non_exhaustive]pub struct EvaluationFormSingleSelectQuestionOptionBuilder { /* private fields */ }
Expand description
A builder for EvaluationFormSingleSelectQuestionOption
.
Implementations§
source§impl EvaluationFormSingleSelectQuestionOptionBuilder
impl EvaluationFormSingleSelectQuestionOptionBuilder
sourcepub fn ref_id(self, input: impl Into<String>) -> Self
pub fn ref_id(self, input: impl Into<String>) -> Self
The identifier of the answer option. An identifier must be unique within the question.
This field is required.sourcepub fn set_ref_id(self, input: Option<String>) -> Self
pub fn set_ref_id(self, input: Option<String>) -> Self
The identifier of the answer option. An identifier must be unique within the question.
sourcepub fn get_ref_id(&self) -> &Option<String>
pub fn get_ref_id(&self) -> &Option<String>
The identifier of the answer option. An identifier must be unique within the question.
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
The title of the answer option.
This field is required.sourcepub fn automatic_fail(self, input: bool) -> Self
pub fn automatic_fail(self, input: bool) -> Self
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
sourcepub fn set_automatic_fail(self, input: Option<bool>) -> Self
pub fn set_automatic_fail(self, input: Option<bool>) -> Self
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
sourcepub fn get_automatic_fail(&self) -> &Option<bool>
pub fn get_automatic_fail(&self) -> &Option<bool>
The flag to mark the option as automatic fail. If an automatic fail answer is provided, the overall evaluation gets a score of 0.
sourcepub fn build(
self
) -> Result<EvaluationFormSingleSelectQuestionOption, BuildError>
pub fn build( self ) -> Result<EvaluationFormSingleSelectQuestionOption, BuildError>
Consumes the builder and constructs a EvaluationFormSingleSelectQuestionOption
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EvaluationFormSingleSelectQuestionOptionBuilder
impl Clone for EvaluationFormSingleSelectQuestionOptionBuilder
source§fn clone(&self) -> EvaluationFormSingleSelectQuestionOptionBuilder
fn clone(&self) -> EvaluationFormSingleSelectQuestionOptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EvaluationFormSingleSelectQuestionOptionBuilder
impl Default for EvaluationFormSingleSelectQuestionOptionBuilder
source§fn default() -> EvaluationFormSingleSelectQuestionOptionBuilder
fn default() -> EvaluationFormSingleSelectQuestionOptionBuilder
source§impl PartialEq for EvaluationFormSingleSelectQuestionOptionBuilder
impl PartialEq for EvaluationFormSingleSelectQuestionOptionBuilder
source§fn eq(&self, other: &EvaluationFormSingleSelectQuestionOptionBuilder) -> bool
fn eq(&self, other: &EvaluationFormSingleSelectQuestionOptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.