Skip to main content

QuestionSet

Trait QuestionSet 

Source
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§

Source

type Schema: AnswerSchema

Response shape retained from these questions.

Required Methods§

Source

fn as_questions(&self) -> &Questions

Ordered, validated question definitions.

Source

fn schema(&self) -> Self::Schema

Response field schema, independent of question object identities.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§