pub struct PreparedQuestions<S: AnswerSchema> { /* private fields */ }Expand description
Ordered question definitions together with their named response shape.
Usually constructed by crate::questions!.
Implementations§
Source§impl<S: AnswerSchema> PreparedQuestions<S>
impl<S: AnswerSchema> PreparedQuestions<S>
Sourcepub fn new(questions: Questions, schema: S) -> Self
pub fn new(questions: Questions, schema: S) -> Self
Combine definitions with a custom response schema. Prefer crate::questions!.
Trait Implementations§
Source§impl<S: Clone + AnswerSchema> Clone for PreparedQuestions<S>
impl<S: Clone + AnswerSchema> Clone for PreparedQuestions<S>
Source§impl<S: Debug + AnswerSchema> Debug for PreparedQuestions<S>
impl<S: Debug + AnswerSchema> Debug for PreparedQuestions<S>
Source§impl<S: AnswerSchema> QuestionSet for PreparedQuestions<S>
impl<S: AnswerSchema> QuestionSet for PreparedQuestions<S>
Auto Trait Implementations§
impl<S> Freeze for PreparedQuestions<S>where
S: Freeze,
impl<S> RefUnwindSafe for PreparedQuestions<S>where
S: RefUnwindSafe,
impl<S> Send for PreparedQuestions<S>where
S: Send,
impl<S> Sync for PreparedQuestions<S>where
S: Sync,
impl<S> Unpin for PreparedQuestions<S>where
S: Unpin,
impl<S> UnsafeUnpin for PreparedQuestions<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for PreparedQuestions<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more