pub trait QuestionSet: Sealed {
type Schema: AnswerSchema;
// Required methods
fn as_questions(&self) -> &Questions;
fn schema(&self) -> Self::Schema;
}Expand description
Request questions accepted by crate::Client::decide.
Use Questions for dynamic keys or crate::questions! for inferred named answer fields.
Required Associated Types§
Sourcetype Schema: AnswerSchema
type Schema: AnswerSchema
Response shape retained from these questions.
Required Methods§
Sourcefn as_questions(&self) -> &Questions
fn as_questions(&self) -> &Questions
Ordered, validated question definitions.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".