#[non_exhaustive]pub struct EvaluationFormNumericQuestionOptionBuilder { /* private fields */ }
Expand description
A builder for EvaluationFormNumericQuestionOption
.
Implementations§
source§impl EvaluationFormNumericQuestionOptionBuilder
impl EvaluationFormNumericQuestionOptionBuilder
sourcepub fn min_value(self, input: i32) -> Self
pub fn min_value(self, input: i32) -> Self
The minimum answer value of the range option.
This field is required.sourcepub fn set_min_value(self, input: Option<i32>) -> Self
pub fn set_min_value(self, input: Option<i32>) -> Self
The minimum answer value of the range option.
sourcepub fn get_min_value(&self) -> &Option<i32>
pub fn get_min_value(&self) -> &Option<i32>
The minimum answer value of the range option.
sourcepub fn max_value(self, input: i32) -> Self
pub fn max_value(self, input: i32) -> Self
The maximum answer value of the range option.
This field is required.sourcepub fn set_max_value(self, input: Option<i32>) -> Self
pub fn set_max_value(self, input: Option<i32>) -> Self
The maximum answer value of the range option.
sourcepub fn get_max_value(&self) -> &Option<i32>
pub fn get_max_value(&self) -> &Option<i32>
The maximum answer value of the range option.
sourcepub fn score(self, input: i32) -> Self
pub fn score(self, input: i32) -> Self
The score assigned to answer values within the range option.
sourcepub fn set_score(self, input: Option<i32>) -> Self
pub fn set_score(self, input: Option<i32>) -> Self
The score assigned to answer values within the range option.
sourcepub fn get_score(&self) -> &Option<i32>
pub fn get_score(&self) -> &Option<i32>
The score assigned to answer values within the range option.
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) -> EvaluationFormNumericQuestionOption
pub fn build(self) -> EvaluationFormNumericQuestionOption
Consumes the builder and constructs a EvaluationFormNumericQuestionOption
.
Trait Implementations§
source§impl Clone for EvaluationFormNumericQuestionOptionBuilder
impl Clone for EvaluationFormNumericQuestionOptionBuilder
source§fn clone(&self) -> EvaluationFormNumericQuestionOptionBuilder
fn clone(&self) -> EvaluationFormNumericQuestionOptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EvaluationFormNumericQuestionOptionBuilder
impl Default for EvaluationFormNumericQuestionOptionBuilder
source§fn default() -> EvaluationFormNumericQuestionOptionBuilder
fn default() -> EvaluationFormNumericQuestionOptionBuilder
source§impl PartialEq for EvaluationFormNumericQuestionOptionBuilder
impl PartialEq for EvaluationFormNumericQuestionOptionBuilder
source§fn eq(&self, other: &EvaluationFormNumericQuestionOptionBuilder) -> bool
fn eq(&self, other: &EvaluationFormNumericQuestionOptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.