#[non_exhaustive]pub struct SingleSelectQuestionRuleCategoryAutomationBuilder { /* private fields */ }
Expand description
A builder for SingleSelectQuestionRuleCategoryAutomation
.
Implementations§
source§impl SingleSelectQuestionRuleCategoryAutomationBuilder
impl SingleSelectQuestionRuleCategoryAutomationBuilder
sourcepub fn category(self, input: impl Into<String>) -> Self
pub fn category(self, input: impl Into<String>) -> Self
The category name, as defined in Rules.
This field is required.sourcepub fn set_category(self, input: Option<String>) -> Self
pub fn set_category(self, input: Option<String>) -> Self
The category name, as defined in Rules.
sourcepub fn get_category(&self) -> &Option<String>
pub fn get_category(&self) -> &Option<String>
The category name, as defined in Rules.
sourcepub fn condition(
self,
input: SingleSelectQuestionRuleCategoryAutomationCondition
) -> Self
pub fn condition( self, input: SingleSelectQuestionRuleCategoryAutomationCondition ) -> Self
The condition to apply for the automation option. If the condition is PRESENT
, then the option is applied when the contact data includes the category. Similarly, if the condition is NOT_PRESENT
, then the option is applied when the contact data does not include the category.
sourcepub fn set_condition(
self,
input: Option<SingleSelectQuestionRuleCategoryAutomationCondition>
) -> Self
pub fn set_condition( self, input: Option<SingleSelectQuestionRuleCategoryAutomationCondition> ) -> Self
The condition to apply for the automation option. If the condition is PRESENT
, then the option is applied when the contact data includes the category. Similarly, if the condition is NOT_PRESENT
, then the option is applied when the contact data does not include the category.
sourcepub fn get_condition(
&self
) -> &Option<SingleSelectQuestionRuleCategoryAutomationCondition>
pub fn get_condition( &self ) -> &Option<SingleSelectQuestionRuleCategoryAutomationCondition>
The condition to apply for the automation option. If the condition is PRESENT
, then the option is applied when the contact data includes the category. Similarly, if the condition is NOT_PRESENT
, then the option is applied when the contact data does not include the category.
sourcepub fn option_ref_id(self, input: impl Into<String>) -> Self
pub fn option_ref_id(self, input: impl Into<String>) -> Self
The identifier of the answer option.
This field is required.sourcepub fn set_option_ref_id(self, input: Option<String>) -> Self
pub fn set_option_ref_id(self, input: Option<String>) -> Self
The identifier of the answer option.
sourcepub fn get_option_ref_id(&self) -> &Option<String>
pub fn get_option_ref_id(&self) -> &Option<String>
The identifier of the answer option.
sourcepub fn build(
self
) -> Result<SingleSelectQuestionRuleCategoryAutomation, BuildError>
pub fn build( self ) -> Result<SingleSelectQuestionRuleCategoryAutomation, BuildError>
Consumes the builder and constructs a SingleSelectQuestionRuleCategoryAutomation
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SingleSelectQuestionRuleCategoryAutomationBuilder
impl Clone for SingleSelectQuestionRuleCategoryAutomationBuilder
source§fn clone(&self) -> SingleSelectQuestionRuleCategoryAutomationBuilder
fn clone(&self) -> SingleSelectQuestionRuleCategoryAutomationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SingleSelectQuestionRuleCategoryAutomationBuilder
impl Default for SingleSelectQuestionRuleCategoryAutomationBuilder
source§fn default() -> SingleSelectQuestionRuleCategoryAutomationBuilder
fn default() -> SingleSelectQuestionRuleCategoryAutomationBuilder
source§impl PartialEq for SingleSelectQuestionRuleCategoryAutomationBuilder
impl PartialEq for SingleSelectQuestionRuleCategoryAutomationBuilder
source§fn eq(&self, other: &SingleSelectQuestionRuleCategoryAutomationBuilder) -> bool
fn eq(&self, other: &SingleSelectQuestionRuleCategoryAutomationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.