pub trait AnswerSchema: Clone {
type Answers<'a>;
// Required method
fn parse<'a>(
&self,
raw: &'a DecisionResponse,
questions: &'a Questions,
) -> Result<Self::Answers<'a>, Error>;
}Expand description
Constructs borrowed answer fields for a request shape.
Usually generated by crate::questions!. Implementations must use request keys to select fields;
missing keys or mismatched answer kinds must return an error.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".