pub struct Input {
pub model: InputModel,
pub questions: HashMap<String, InputQuestionsValue>,
pub state: InputState,
}Expand description
Evaluates one or more named questions against the provided state content. A single request can mix noul, choice, and score question types; the response returns an answer for every question using the same question name.
Fields§
§model: InputModelDecision model to use.
questions: HashMap<String, InputQuestionsValue>Object containing one or more named questions. Each property name is a caller-defined question name, and each value is a NoulQuestion, ChoiceQuestion, or ScoreQuestion.
state: InputStateContent against which questions are evaluated. Can be a string, JSON object, or array.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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
Source§impl IntoOperation for Input
impl IntoOperation for Input
Auto Trait Implementations§
impl Forget for Input
impl Freeze for Inputwhere
*const u8 is !null: Freeze,
PhantomData<(String, InputQuestionsValue)>: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<Value>: Freeze,
impl Move for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Inputwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, InputQuestionsValue)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
impl UnwindSafe for Inputwhere
HashMap<String, InputQuestionsValue>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: 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