#[non_exhaustive]pub struct EvaluationFormSectionBuilder { /* private fields */ }
Expand description
A builder for EvaluationFormSection
.
Implementations§
source§impl EvaluationFormSectionBuilder
impl EvaluationFormSectionBuilder
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title of the section.
This field is required.sourcepub fn ref_id(self, input: impl Into<String>) -> Self
pub fn ref_id(self, input: impl Into<String>) -> Self
The identifier of the section. 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 section. 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 section. An identifier must be unique within the evaluation form.
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 items(self, input: EvaluationFormItem) -> Self
pub fn items(self, input: EvaluationFormItem) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
The items of the section.
sourcepub fn set_items(self, input: Option<Vec<EvaluationFormItem>>) -> Self
pub fn set_items(self, input: Option<Vec<EvaluationFormItem>>) -> Self
The items of the section.
sourcepub fn get_items(&self) -> &Option<Vec<EvaluationFormItem>>
pub fn get_items(&self) -> &Option<Vec<EvaluationFormItem>>
The items of the section.
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<EvaluationFormSection, BuildError>
pub fn build(self) -> Result<EvaluationFormSection, BuildError>
Consumes the builder and constructs a EvaluationFormSection
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EvaluationFormSectionBuilder
impl Clone for EvaluationFormSectionBuilder
source§fn clone(&self) -> EvaluationFormSectionBuilder
fn clone(&self) -> EvaluationFormSectionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluationFormSectionBuilder
impl Debug for EvaluationFormSectionBuilder
source§impl Default for EvaluationFormSectionBuilder
impl Default for EvaluationFormSectionBuilder
source§fn default() -> EvaluationFormSectionBuilder
fn default() -> EvaluationFormSectionBuilder
source§impl PartialEq for EvaluationFormSectionBuilder
impl PartialEq for EvaluationFormSectionBuilder
source§fn eq(&self, other: &EvaluationFormSectionBuilder) -> bool
fn eq(&self, other: &EvaluationFormSectionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.