DecisionAnswer
Rust struct goodmem::models::DecisionAnswer: declaration, fields or variants, and implementations.
Struct DecisionAnswer
goodmem::models::DecisionAnswer
Answer to one question. Exactly one of choice, score, noul, or box is present.
pub struct DecisionAnswer {
pub choice: Option<Box<DecisionChoiceAnswer>>,
pub score: Option<Box<DecisionScoreAnswer>>,
pub noul: Option<Box<DecisionNoulAnswer>>,
pub r#box: Option<Box<DecisionBoxAnswer>>,
}Referenced types: DecisionBoxAnswer, DecisionChoiceAnswer, DecisionNoulAnswer, DecisionScoreAnswer.
Fields
choice
pub choice: Option<Box<DecisionChoiceAnswer>>
Selected option and the probability assigned to each option.
Wire name: choice.
score
pub score: Option<Box<DecisionScoreAnswer>>
Score and the probability assigned to each score level.
Wire name: score.
noul
pub noul: Option<Box<DecisionNoulAnswer>>
Probability that the statement is true.
Wire name: noul.
r#box
pub r#box: Option<Box<DecisionBoxAnswer>>
Normalized image coordinates.
Wire name: box.
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 DecisionAnswerimpl std::fmt::Debug for DecisionAnswer