#[non_exhaustive]pub struct EvaluationFormNumericQuestionOption {
pub min_value: i32,
pub max_value: i32,
pub score: i32,
pub automatic_fail: bool,
}
Expand description
Information about the option range used for scoring in numeric questions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.min_value: i32
The minimum answer value of the range option.
max_value: i32
The maximum answer value of the range option.
score: i32
The score assigned to answer values within the range option.
automatic_fail: 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.
Implementations§
source§impl EvaluationFormNumericQuestionOption
impl EvaluationFormNumericQuestionOption
sourcepub fn automatic_fail(&self) -> bool
pub fn automatic_fail(&self) -> 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.
source§impl EvaluationFormNumericQuestionOption
impl EvaluationFormNumericQuestionOption
sourcepub fn builder() -> EvaluationFormNumericQuestionOptionBuilder
pub fn builder() -> EvaluationFormNumericQuestionOptionBuilder
Creates a new builder-style object to manufacture EvaluationFormNumericQuestionOption
.
Trait Implementations§
source§impl Clone for EvaluationFormNumericQuestionOption
impl Clone for EvaluationFormNumericQuestionOption
source§fn clone(&self) -> EvaluationFormNumericQuestionOption
fn clone(&self) -> EvaluationFormNumericQuestionOption
Returns a copy 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 PartialEq for EvaluationFormNumericQuestionOption
impl PartialEq for EvaluationFormNumericQuestionOption
source§fn eq(&self, other: &EvaluationFormNumericQuestionOption) -> bool
fn eq(&self, other: &EvaluationFormNumericQuestionOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluationFormNumericQuestionOption
Auto Trait Implementations§
impl Freeze for EvaluationFormNumericQuestionOption
impl RefUnwindSafe for EvaluationFormNumericQuestionOption
impl Send for EvaluationFormNumericQuestionOption
impl Sync for EvaluationFormNumericQuestionOption
impl Unpin for EvaluationFormNumericQuestionOption
impl UnwindSafe for EvaluationFormNumericQuestionOption
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.