pub trait ReadAnswer {
type Output<'a>;
// Required method
fn read<'a>(
id: &str,
answer: &'a Answer,
) -> Result<Self::Output<'a>, AnswerError>;
}Expand description
How the answer behind a QuestionKey is read from a response.
Implemented for NoulAnswer, ChoiceAnswer, ScoreAnswer, Answer,
TypedChoice and ValueChoice. Implement it
for your own question types together with IntoQuestion.
Required Associated Types§
Sourcetype Output<'a>
type Output<'a>
What SystemOneResponse::answer returns for this key.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".