GoodMemGoodMem
ReferenceSdkRustTypes

DecisionChoiceQuestion

Rust struct goodmem::models::DecisionChoiceQuestion: declaration, fields or variants, and implementations.

All types

Struct DecisionChoiceQuestion

goodmem::models::DecisionChoiceQuestion

Choice options.

pub struct DecisionChoiceQuestion {
    pub options: BTreeMap<String, DecisionContent>,
}

Referenced types: DecisionContent.

Fields

options

pub options: BTreeMap<String, DecisionContent>

Option identifiers and descriptions. Wire name: options.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for DecisionChoiceQuestion
  • impl std::fmt::Debug for DecisionChoiceQuestion

On this page