pub struct Questions(/* private fields */);Expand description
An ordered map of question key to Question.
Ordering is preserved (backed by indexmap::IndexMap) so request payloads are
stable and byte-comparable in tests, and so score legends and probabilities read
back in their natural order.
§Examples
use jev::Questions;
let questions = Questions::builder()
.noul("refund", "Is the customer asking for money back?")
.build()
.unwrap();
assert_eq!(questions.len(), 1);Implementations§
Trait Implementations§
Source§impl<'a> IntoIterator for &'a Questions
impl<'a> IntoIterator for &'a Questions
impl StructuralPartialEq for Questions
Auto Trait Implementations§
impl Freeze for Questions
impl RefUnwindSafe for Questions
impl Send for Questions
impl Sync for Questions
impl Unpin for Questions
impl UnsafeUnpin for Questions
impl UnwindSafe for Questions
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