pub struct Question {
pub kind: QuestionType,
pub instructions: Option<Value>,
pub criteria: Option<Value>,
pub extra: Map<String, Value>,
}Expand description
Native question. Criteria and cost matrices are JSON objects or arrays; preserve their order.
Additional native fields (including future extensions) go in extra.
Fields§
§kind: QuestionTypeQuestion type, serialized as type.
instructions: Option<Value>Instruction text, or another JSON value accepted by the native API.
criteria: Option<Value>Native criteria object or ordered list.
extra: Map<String, Value>Additional question fields, such as costs, threshold, evidence, or option_keys.
Do not repeat type, instructions, or criteria here.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Question
impl<'de> Deserialize<'de> for Question
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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