#[non_exhaustive]pub struct SingleSelectQuestionRuleCategoryAutomation {
pub category: Option<String>,
pub condition: Option<SingleSelectQuestionRuleCategoryAutomationCondition>,
pub option_ref_id: Option<String>,
}
Expand description
Information about the automation option based on a rule category for a single select question.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.category: Option<String>
The category name, as defined in Rules.
condition: 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.
option_ref_id: Option<String>
The identifier of the answer option.
Implementations§
source§impl SingleSelectQuestionRuleCategoryAutomation
impl SingleSelectQuestionRuleCategoryAutomation
sourcepub fn condition(
&self
) -> Option<&SingleSelectQuestionRuleCategoryAutomationCondition>
pub fn 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) -> Option<&str>
pub fn option_ref_id(&self) -> Option<&str>
The identifier of the answer option.
source§impl SingleSelectQuestionRuleCategoryAutomation
impl SingleSelectQuestionRuleCategoryAutomation
sourcepub fn builder() -> SingleSelectQuestionRuleCategoryAutomationBuilder
pub fn builder() -> SingleSelectQuestionRuleCategoryAutomationBuilder
Creates a new builder-style object to manufacture SingleSelectQuestionRuleCategoryAutomation
.
Trait Implementations§
source§impl Clone for SingleSelectQuestionRuleCategoryAutomation
impl Clone for SingleSelectQuestionRuleCategoryAutomation
source§fn clone(&self) -> SingleSelectQuestionRuleCategoryAutomation
fn clone(&self) -> SingleSelectQuestionRuleCategoryAutomation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<SingleSelectQuestionRuleCategoryAutomation> for SingleSelectQuestionRuleCategoryAutomation
impl PartialEq<SingleSelectQuestionRuleCategoryAutomation> for SingleSelectQuestionRuleCategoryAutomation
source§fn eq(&self, other: &SingleSelectQuestionRuleCategoryAutomation) -> bool
fn eq(&self, other: &SingleSelectQuestionRuleCategoryAutomation) -> bool
self
and other
values to be equal, and is used
by ==
.