GoodMemGoodMem
ReferenceSdkRustTypes

DecisionQuestionSemantics

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

All types

Struct DecisionQuestionSemantics

goodmem::models::DecisionQuestionSemantics

Meaning of the answer and confidence value for one question type.

pub struct DecisionQuestionSemantics {
    pub question_type: DecisionQuestionSemanticsQuestionType,
    pub confidence: DecisionQuestionSemanticsConfidence,
    pub output: DecisionQuestionSemanticsOutput,
}

Referenced types: DecisionQuestionSemanticsConfidence, DecisionQuestionSemanticsOutput, DecisionQuestionSemanticsQuestionType.

Fields

question_type

pub question_type: DecisionQuestionSemanticsQuestionType

Question type. Wire name: questionType.

confidence

pub confidence: DecisionQuestionSemanticsConfidence

How to interpret the confidence value reported by the provider. Wire name: confidence.

output

pub output: DecisionQuestionSemanticsOutput

Meaning of the primary answer value. Wire name: output.

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 DecisionQuestionSemantics
  • impl std::fmt::Debug for DecisionQuestionSemantics

On this page