#[non_exhaustive]pub struct EvaluationFormQuestionBuilder { /* private fields */ }
Expand description
A builder for EvaluationFormQuestion
.
Implementations§
source§impl EvaluationFormQuestionBuilder
impl EvaluationFormQuestionBuilder
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title of the question.
This field is required.sourcepub fn instructions(self, input: impl Into<String>) -> Self
pub fn instructions(self, input: impl Into<String>) -> Self
The instructions of the section.
sourcepub fn set_instructions(self, input: Option<String>) -> Self
pub fn set_instructions(self, input: Option<String>) -> Self
The instructions of the section.
sourcepub fn get_instructions(&self) -> &Option<String>
pub fn get_instructions(&self) -> &Option<String>
The instructions of the section.
sourcepub fn ref_id(self, input: impl Into<String>) -> Self
pub fn ref_id(self, input: impl Into<String>) -> Self
The identifier of the question. An identifier must be unique within the evaluation form.
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 question. An identifier must be unique within the evaluation form.
sourcepub fn get_ref_id(&self) -> &Option<String>
pub fn get_ref_id(&self) -> &Option<String>
The identifier of the question. An identifier must be unique within the evaluation form.
sourcepub fn not_applicable_enabled(self, input: bool) -> Self
pub fn not_applicable_enabled(self, input: bool) -> Self
The flag to enable not applicable answers to the question.
sourcepub fn set_not_applicable_enabled(self, input: Option<bool>) -> Self
pub fn set_not_applicable_enabled(self, input: Option<bool>) -> Self
The flag to enable not applicable answers to the question.
sourcepub fn get_not_applicable_enabled(&self) -> &Option<bool>
pub fn get_not_applicable_enabled(&self) -> &Option<bool>
The flag to enable not applicable answers to the question.
sourcepub fn question_type(self, input: EvaluationFormQuestionType) -> Self
pub fn question_type(self, input: EvaluationFormQuestionType) -> Self
The type of the question.
This field is required.sourcepub fn set_question_type(
self,
input: Option<EvaluationFormQuestionType>
) -> Self
pub fn set_question_type( self, input: Option<EvaluationFormQuestionType> ) -> Self
The type of the question.
sourcepub fn get_question_type(&self) -> &Option<EvaluationFormQuestionType>
pub fn get_question_type(&self) -> &Option<EvaluationFormQuestionType>
The type of the question.
sourcepub fn question_type_properties(
self,
input: EvaluationFormQuestionTypeProperties
) -> Self
pub fn question_type_properties( self, input: EvaluationFormQuestionTypeProperties ) -> Self
The properties of the type of question. Text questions do not have to define question type properties.
sourcepub fn set_question_type_properties(
self,
input: Option<EvaluationFormQuestionTypeProperties>
) -> Self
pub fn set_question_type_properties( self, input: Option<EvaluationFormQuestionTypeProperties> ) -> Self
The properties of the type of question. Text questions do not have to define question type properties.
sourcepub fn get_question_type_properties(
&self
) -> &Option<EvaluationFormQuestionTypeProperties>
pub fn get_question_type_properties( &self ) -> &Option<EvaluationFormQuestionTypeProperties>
The properties of the type of question. Text questions do not have to define question type properties.
sourcepub fn set_weight(self, input: Option<f64>) -> Self
pub fn set_weight(self, input: Option<f64>) -> Self
The scoring weight of the section.
sourcepub fn get_weight(&self) -> &Option<f64>
pub fn get_weight(&self) -> &Option<f64>
The scoring weight of the section.
sourcepub fn build(self) -> Result<EvaluationFormQuestion, BuildError>
pub fn build(self) -> Result<EvaluationFormQuestion, BuildError>
Consumes the builder and constructs a EvaluationFormQuestion
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EvaluationFormQuestionBuilder
impl Clone for EvaluationFormQuestionBuilder
source§fn clone(&self) -> EvaluationFormQuestionBuilder
fn clone(&self) -> EvaluationFormQuestionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EvaluationFormQuestionBuilder
impl Default for EvaluationFormQuestionBuilder
source§fn default() -> EvaluationFormQuestionBuilder
fn default() -> EvaluationFormQuestionBuilder
source§impl PartialEq for EvaluationFormQuestionBuilder
impl PartialEq for EvaluationFormQuestionBuilder
source§fn eq(&self, other: &EvaluationFormQuestionBuilder) -> bool
fn eq(&self, other: &EvaluationFormQuestionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.