pub enum Question {
Noul {
instructions: Value,
criteria: Option<NoulCriteria>,
},
Choice {
instructions: Value,
criteria: BTreeMap<String, Value>,
},
Score {
instructions: Value,
criteria: Vec<Value>,
},
}Expand description
One typed question; serialized as the request’s questions value.
instructions and the criteria values the API types as any JSON
(string, object, array or null; a score level no null) cross verbatim.
Variants§
Trait Implementations§
impl StructuralPartialEq for Question
Auto Trait Implementations§
impl Freeze for Question
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnsafeUnpin for Question
impl UnwindSafe for Question
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